Revision a370d3dd

b/templates/403.html
1
{% extends "base.html" %}
1
{% extends "b3theme/base.html" %}
2
{% load widget_tweaks %}
2 3

  
3
{% block title %}Access denied{% endblock %}
4
{% block content %}
5
<h3 align="center">Access denied</h3>
6
<h4 align="center">You do not have sufficient privileges</h4>
4
{% load i18n %}
5
   {% block sidenav %}{% endblock %}
6
   {% block extraheadbottom %}
7
<style>
8
	@media (min-width: 768px) {
9
		#page-wrapper {
10
		    border-left: none;
11
		    margin: 0;
12
		}
13
}
14
</style>
7 15
{% endblock %}
16

  
17
{% block title %}Access denied{% endblock %}
18

  
19

  
20

  
21
{% block contentplaceholder %}
22
       <div class="container">
23
       <div class="row">
24
                <div class="col-lg-12">
25
                    <h1 class="page-header">Access denied</h1>
26
                </div>
27
                <!-- /.col-lg-12 -->
28
            </div>
29
            
30
            <div class="row">
31
                <div class="col-lg-12">
32
                	<div class="panel panel-danger">
33
                        <div class="panel-heading">
34
                            <i class="fa fa-info-circle"></i> Access denied
35
                        </div>
36
                        <!-- /.panel-heading -->
37
                        <div class="panel-body">
38
                        						<div class="alert alert-danger">
39
					You do not have sufficient privileges
40
					</div>
41
                        	</div>
42
                        </div>
43
                       </div>
44
                      </div>
45
                     </div>
46
				
47
	{% endblock %}
48

  
49

  
50

  
51

  
b/templates/404.html
1
{% extends "base.html" %}
1
{% extends "b3theme/base.html" %}
2
{% load widget_tweaks %}
2 3

  
3
{% block title %}Page not found{% endblock %}
4
{% block content %}
5
<h3 align="center">Page not found</h3>
6
<h4 align="center">The page that you requested was not found.</h4>
4
{% load i18n %}
5
   {% block sidenav %}{% endblock %}
6
   {% block extraheadbottom %}
7
<style>
8
	@media (min-width: 768px) {
9
		#page-wrapper {
10
		    border-left: none;
11
		    margin: 0;
12
		}
13
}
14
</style>
7 15
{% endblock %}
16

  
17
{% block title %}Page not found{% endblock %}
18

  
19

  
20

  
21
{% block contentplaceholder %}
22
       <div class="container">
23
       <div class="row">
24
                <div class="col-lg-12">
25
                    <h1 class="page-header">Page not found</h1>
26
                </div>
27
                <!-- /.col-lg-12 -->
28
            </div>
29
            
30
            <div class="row">
31
                <div class="col-lg-12">
32
                	<div class="panel panel-danger">
33
                        <div class="panel-heading">
34
                            <i class="fa fa-info-circle"></i> Page not found
35
                        </div>
36
                        <!-- /.panel-heading -->
37
                        <div class="panel-body">
38
                        						<div class="alert alert-danger">
39
					The page that you requested was not found.
40
					</div>
41
                        	</div>
42
                        </div>
43
                       </div>
44
                      </div>
45
                     </div>
46
				
47
	{% endblock %}
48

  
49

  
50

  
51

  
b/templates/b3theme/base.html
188 188
		$("#langsel").val(lang);
189 189
		$("#langform").submit();
190 190
	}
191
	
192
	$(document).ready(function() {
193
  $.ajaxSetup({ cache: false });
194
});
191 195

  
192 196
	</script>
193 197

  
b/templates/flatpages/default.html
1
{% extends "base.html" %}
2

  
1
{% extends "b3theme/base.html" %}
2
{% block sidenav %}{% endblock %}
3 3
{% load i18n %}
4 4
    {% block title %}{{ flatpage.title }}{% endblock %}
5
     {% block breadcrumbs %}
6
 <li class="active"><span class="divider">/</span>
7
	
8
	{% trans flatpage.title %}
9
</li>
5
{% block extraheadbottom %}
6
<style>
7
	@media (min-width: 768px) {
8
		#page-wrapper {
9
		    border-left: none;
10
		    margin: 0;
11
		}
12
}
13
</style>
10 14
{% endblock %}
11
    {% block extrahead %}
12
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
13
	<META HTTP-EQUIV="Expires" CONTENT="-1">
14
    <style type="text/css">
15
      
16
      .headtitle {font-family: "Franklin Gothic Demi", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif; letter-spacing: -1px; }
17
    </style>
18
    <script type="text/javascript" src="{{STATIC_URL}}js/jquery.min.js"></script>
19
 
20
<script type="text/javascript">
15
    {% block pagejsbottom %}
16
    <script type="text/javascript">
21 17

  
22 18
        function setlang(lang) {
23 19
                $("#langsel").val(lang);
......
34 30
                
35 31
        }
36 32
</script>
37
    
33
    {% endblock %}
38 34

  
35
    {% block extrahead %}
36
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
37
	<META HTTP-EQUIV="Expires" CONTENT="-1">
38
    
39 39
{% endblock %}
40 40

  
41
		{% block content %}
42
			<h4 class='muted'>{{ flatpage.title }}</h4>
43
			<hr>
44
			<div class="span9">
45
			{{ flatpage.content|linebreaks }}
46
			</div>
41
		{% block contentplaceholder %}
42
		
43
		<div class="container">
44
    <div class="row">
45
                <div class="col-lg-12">
46
                    <h1 class="page-header">{{ flatpage.title }}</h1>
47
                </div>
48
                <!-- /.col-lg-12 -->
49
            </div>
50
		
51
		
52
            
53
<div class="row">
54
                <div class="col-lg-8">
55
                	<div class="panel panel-primary">
56
                        <div class="panel-heading">
57
                            <i class="fa fa-info fa-fw"></i> {{ flatpage.title }}
58
                        </div>
59
                        <!-- /.panel-heading -->
60
                        <div class="panel-body">
61
                        	
62
            {{ flatpage.content|linebreaks }}
63
            </div>
64
            </div>  
65
            </div>  
66
            </div>          
67
           </div>
68
		
69
			
47 70
		{% endblock %}
48 71

  
b/templates/footer.html
5 5
        {% if user.is_authenticated %}
6 6
	<p>{% trans "If you have any questions or need help, contact GRNET Helpdesk at <a href='mailto:helpdesk@grnet.gr'>helpdesk@grnet.gr</a> or 800-11-47638." %}</p>
7 7
	{% endif %}
8
	<div style="padding-top: 10px;"><a href="https://code.grnet.gr/projects/flowspy">Vesrion: <strong>{{VERSION}}</strong></a> - {% trans "Designed and developed by GRNET NOC" %}
8
	<div style="padding-top: 10px;"><a href="https://code.grnet.gr/projects/flowspy">Version: <strong>{{VERSION}}</strong></a> - {% trans "Designed and developed by GRNET NOC" %}
9 9
	<a href="//facebook.com/noc.grnet.gr" target="_blank"><img src="{{STATIC_URL}}img/facebook_img.png" alt="GRNET NOC on Facebook" title="GRNET NOC on Facebook"/></a>  <a href="//twitter.com/grnetnoc"  target="_blank"><img src="{{STATIC_URL}}img/twitter_img.png" alt="GRNET NOC on Twitter" title="GRNET NOC on Twitter"/></a>
10 10
	</div>
11
        <div class="row"><a href="http://noc.grnet.gr">{% trans "GRNET" %} NOC</a> | <a href="/fod/info/{{LANGUAGE_CODE}}/">{% trans "Info" %}</a> | <a href="/fod/tos/{{LANGUAGE_CODE}}/">{% trans "Service Terms" %}</a></div>
11
        <div class="row"><a href="http://noc.grnet.gr">{% trans "GRNET" %} NOC</a> | <a href="/info/{{LANGUAGE_CODE}}/">{% trans "Info" %}</a> | <a href="/tos/{{LANGUAGE_CODE}}/">{% trans "Service Terms" %}</a></div>
12 12
        <div style="padding-top: 10px;">
13 13

  
14 14
        </div>
b/templates/overview/login.html
1 1
{% extends "b3theme/base.html" %}
2 2
{% load widget_tweaks %}
3
{% block sidenav %}{% endblock %}
3 4
{% load i18n %}
4 5
   {% block extraheadbottom %}
5 6
<style>
b/templates/poller.js
27 27
    var message = form.formToDict();
28 28
    var disabled = form.find("input[type=submit]");
29 29
    disabled.disable();
30
    $.postJSON("{% url fetch-new %}", message, function(response) {
30
    var date = new Date();
31
	var timestamp = date.getTime();
32
    $.postJSON("{% url fetch-new %}?="+timestamp, message, function(response) {
31 33
	updater.showMessage(response);
32 34
	if (message.id) {
33 35
	    form.parent().remove();
......
44 46
}
45 47

  
46 48
jQuery.postJSON = function(url, args, callback) {
47
    $.ajax({url: url, dataType: "json", type: "POST",
49
    $.ajax({url: url, dataType: "json", type: "POST", cache: false,
48 50
	    success: function(response) {
49 51
	if (callback) callback(response);
50 52
    }, error: function(response) {
......
80 82
    errorSleepTime: 500,
81 83
    cursor: null,
82 84
    start: function() {
83
		$.ajax({url: "{% url fetch-existing %}", type: "POST", dataType: "json",
85
    	    var date = new Date();
86
			var timestamp = date.getTime();
87
		$.ajax({url: "{% url fetch-existing %}?="+timestamp, type: "POST", dataType: "json", cache:false, 
84 88
    		success: updater.onFetchExisting,
85 89
    		error: updater.onError});
86 90
        },
......
91 95
    		oTable.fnReloadAjax(refreshUrl);
92 96
    	}
93 97
    	timeout = {{timeout}};
94
    	$.ajax({url: "{% url fetch-updates %}", type: "POST", dataType: "json",
98
    	    var date = new Date();
99
			var timestamp = date.getTime();
100
    	$.ajax({url: "{% url fetch-updates %}?="+timestamp, type: "POST", dataType: "json", cache:false,
95 101
    		success: updater.onSuccess,
96 102
    		timeout: timeout,
97 103
    		error: updater.onError});
b/templates/pollerdash.js
28 28
    var message = form.formToDict();
29 29
    var disabled = form.find("input[type=submit]");
30 30
    disabled.disable();
31
    $.postJSON("{% url fetch-new %}", message, function(response) {
31
    var date = new Date();
32
	var timestamp = date.getTime();
33
    $.postJSON("{% url fetch-new %}?="+timestamp, message, function(response) {
32 34
	updater.showMessage(response);
33 35
	if (message.id) {
34 36
	    form.parent().remove();
......
45 47
}
46 48

  
47 49
jQuery.postJSON = function(url, args, callback) {
48
    $.ajax({url: url, dataType: "json", type: "POST",
50
    $.ajax({url: url, dataType: "json", type: "POST", cache: false,
49 51
	    success: function(response) {
50 52
	if (callback) callback(response);
51 53
    }, error: function(response) {
......
81 83
    errorSleepTime: 500,
82 84
    cursor: null,
83 85
    start: function() {
84
		$.ajax({url: "{% url fetch-existing %}", type: "POST", dataType: "json",
86
    	var date = new Date();
87
	var timestamp = date.getTime();
88
		$.ajax({url: "{% url fetch-existing %}?="+timestamp, type: "POST", dataType: "json", cache: false,
85 89
    		success: updater.onFetchExisting,
86 90
    		error: updater.onError});
87 91
        },
......
92 96
    		window.setTimeout('location.reload()', 500);
93 97
    	}
94 98
    	timeout = {{timeout}};
95
    	$.ajax({url: "{% url fetch-updates %}", type: "POST", dataType: "json",
99
    	var date = new Date();
100
	var timestamp = date.getTime();
101
			
102
    	$.ajax({url: "{% url fetch-updates %}?="+timestamp, type: "POST", dataType: "json", cache: false,
96 103
    		success: updater.onSuccess,
97 104
    		timeout: timeout,
98 105
    		error: updater.onError});

Also available in: Unified diff