Commit a4649236 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

log view

parent c3344875
;(function() {
var AJAX_URL = 'http://176.58.117.151:8989/job/'
var AJAX_URL = '/job/'
var tablesTypes = {
RUNNING: 'running',
PENDING: 'pending',
......@@ -194,12 +194,11 @@
// ------------------------------
sendData: function(data, success, error) {
$.ajax({
method: "POST",
method: "GET",
url: AJAX_URL,
cache: false,
contentType: "application/json; charset=utf-8",
dataType: "json",
headers: { 'X-CSRFToken': $.cookie('csrftoken') },
// headers: { 'X-CSRFToken': $.cookie('csrftoken') },
data: data,
success: success,
error: error
......
......@@ -4,6 +4,7 @@
{% block style %}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{% static 'css/atom-one-dark.css' %}">
<link rel="stylesheet" href="{% static 'css/bootstrap.css' %}">
<link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}">
<link rel="stylesheet" href="{% static 'css/style.css' %}">
......@@ -196,17 +197,15 @@
<!-- END: Table deleted -->
<div class="modal" id="log-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle"
aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Log</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<div class="modal-body">
<button type="button" class="close modal-close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<pre><code class="js">
</code></pre>
</div>
</div>
</div>
......@@ -219,6 +218,7 @@
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.16.2/axios.min.js"></script>
<script src="{% static 'js/highlight.pack.js' %}"></script>
<script src="{% static 'js/dateformat.js' %}"></script>
<script src="{% static 'js/tables.js' %}"></script>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment