1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

fix STATIC_URL in templates. static urls should be generated by "static" template tag

This commit is contained in:
Ing. Jan KRCMAR 2017-06-06 14:49:11 +02:00
parent d715e996b0
commit c5f86358be
2 changed files with 9 additions and 7 deletions

View file

@ -1,11 +1,12 @@
{% load staticfiles %}
{% load i18n %} {% load i18n %}
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="shortcut icon" href="{{ STATIC_URL }}img/favicon.ico"> <link rel="shortcut icon" href="{% static "img/favicon.ico" %}">
<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_URL }}css/bootstrap.min.css"> <link rel="stylesheet" href="{% static "css/bootstrap.min.css" %}">
<link href="{{ STATIC_URL }}css/webvirtcloud.css" rel="stylesheet"> <link href="{% static "css/webvirtcloud.css" %}" rel="stylesheet">
<style> <style>
body { body {
@ -92,8 +93,8 @@
<div id='main_container' class="container"> <div id='main_container' class="container">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
<script src="{{ STATIC_URL }}js/jquery.js"></script> <script src="{% static "js/jquery.js" %}"></script>
<script src="{{ STATIC_URL }}js/bootstrap.min.js"></script> <script src="{% static "js/bootstrap.min.js" %}"></script>
<script> <script>
function log_message(msg,type) { function log_message(msg,type) {

View file

@ -1,4 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load staticfiles %}
{% load i18n %} {% load i18n %}
{% block title %}{% trans "Instance" %} - {{ vname }}{% endblock %} {% block title %}{% trans "Instance" %} - {{ vname }}{% endblock %}
{% block content %} {% block content %}
@ -1009,7 +1010,7 @@
</div> </div>
{% endblock %} {% endblock %}
{% block script %} {% block script %}
<script src="{{ STATIC_URL }}/js/ace.js" type="text/javascript" charset="utf-8"></script> <script src="{% static "js/ace.js" %}" type="text/javascript" charset="utf-8"></script>
<script> <script>
var editor = ace.edit("editor"); var editor = ace.edit("editor");
editor.getSession().setMode("ace/mode/xml"); editor.getSession().setMode("ace/mode/xml");
@ -1146,7 +1147,7 @@
}); });
}); });
</script> </script>
<script src="{{ STATIC_URL }}js/Chart.min.js"></script> <script src="{% static "js/Chart.min.js" %}"></script>
<script> <script>
$('#chartgraphs').on('shown.bs.tab', function (event) { $('#chartgraphs').on('shown.bs.tab', function (event) {
var cpuLineData = { var cpuLineData = {