Commit a4649236 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

log view

parent c3344875
;(function() { ;(function() {
var AJAX_URL = 'http://176.58.117.151:8989/job/' var AJAX_URL = '/job/'
var tablesTypes = { var tablesTypes = {
RUNNING: 'running', RUNNING: 'running',
PENDING: 'pending', PENDING: 'pending',
...@@ -194,12 +194,11 @@ ...@@ -194,12 +194,11 @@
// ------------------------------ // ------------------------------
sendData: function(data, success, error) { sendData: function(data, success, error) {
$.ajax({ $.ajax({
method: "POST", method: "GET",
url: AJAX_URL, url: AJAX_URL,
cache: false, cache: false,
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
dataType: "json", // headers: { 'X-CSRFToken': $.cookie('csrftoken') },
headers: { 'X-CSRFToken': $.cookie('csrftoken') },
data: data, data: data,
success: success, success: success,
error: error error: error
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
{% block style %} {% block style %}
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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/bootstrap.css' %}">
<link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}"> <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}">
<link rel="stylesheet" href="{% static 'css/style.css' %}"> <link rel="stylesheet" href="{% static 'css/style.css' %}">
...@@ -196,17 +197,15 @@ ...@@ -196,17 +197,15 @@
<!-- END: Table deleted --> <!-- END: Table deleted -->
<div class="modal" id="log-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" <div class="modal" id="log-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle"
aria-hidden="true"> aria-hidden="true">
<div class="modal-dialog modal-lg" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-body">
<h5 class="modal-title" id="exampleModalLongTitle">Log</h5> <button type="button" class="close modal-close" data-dismiss="modal" aria-label="Close">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> <pre><code class="js">
<div class="modal-body"></div>
<div class="modal-footer"> </code></pre>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div> </div>
</div> </div>
</div> </div>
...@@ -219,6 +218,7 @@ ...@@ -219,6 +218,7 @@
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.16.2/axios.min.js"></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/dateformat.js' %}"></script>
<script src="{% static 'js/tables.js' %}"></script> <script src="{% static 'js/tables.js' %}"></script>
{% endblock %} {% 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