Commit cdd61ed323f5b26bb651009124742a8e0f9df2d3
1 parent
155d19ac
Exists in
master
and in
39 other branches
Replaced STATIC_URL by static template tag
Showing
5 changed files
with
21 additions
and
21 deletions
Show diff stats
src/search/templates/search/search.html
1 | 1 | {% extends "base.html" %} |
2 | -{% load i18n highlight superarchives %} | |
2 | +{% load i18n highlight superarchives static %} | |
3 | 3 | |
4 | 4 | {% block title %}{% trans 'search'|title %}{% endblock %} |
5 | 5 | |
6 | 6 | {% block head_js %} |
7 | -<script type="text/javascript" src="{{ STATIC_URL }}third-party/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script> | |
7 | +<script type="text/javascript" src="{% static 'third-party/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js' %}"></script> | |
8 | 8 | {% if use_language %} |
9 | - <script type="text/javascript" src="{{ STATIC_URL }}third-party/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.{{ use_language }}.js"></script> | |
9 | + <script type="text/javascript" src="{% static 'third-party/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.{{ use_language }}.js' %}"></script> | |
10 | 10 | {% endif %} |
11 | 11 | |
12 | 12 | <script type="text/javascript"> |
... | ... | @@ -32,7 +32,7 @@ |
32 | 32 | {% endblock %} |
33 | 33 | |
34 | 34 | {% block head_css %} |
35 | -<link rel="stylesheet" href="{{ STATIC_URL }}third-party/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css"/> | |
35 | +<link rel="stylesheet" href="{% static 'third-party/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css' %}"/> | |
36 | 36 | {% endblock %} |
37 | 37 | |
38 | 38 | {% block main-content %} | ... | ... |
src/templates/base.html
... | ... | @@ -14,20 +14,20 @@ |
14 | 14 | |
15 | 15 | <title>{% block title %}Colab{% endblock %} - Colab</title> |
16 | 16 | |
17 | - <link rel="shortcut icon" type="image/x-icon" href="{{ STATIC_URL }}img/interlegis.ico"> | |
17 | + <link rel="shortcut icon" type="image/x-icon" href="{% static 'img/interlegis.ico' %}"> | |
18 | 18 | |
19 | - <link rel="stylesheet" href="{{ STATIC_URL }}third-party/bootstrap/css/bootstrap.min.css" type="text/css" media="screen, projection" /> | |
19 | + <link rel="stylesheet" href="{% static 'third-party/bootstrap/css/bootstrap.min.css' %}" type="text/css" media="screen, projection" /> | |
20 | 20 | |
21 | 21 | <link rel="stylesheet" |
22 | - href="{{ STATIC_URL }}third-party/font-awesome/css/font-awesome.min.css" | |
22 | + href="{% static 'third-party/font-awesome/css/font-awesome.min.css' %}" | |
23 | 23 | type="text/css" media="screen" /> |
24 | 24 | |
25 | 25 | |
26 | 26 | <!-- JQuery 2+ won't work for IE < 9 --> |
27 | - <script type="text/javascript" src="{{ STATIC_URL }}third-party/jquery-2.0.3.min.js"></script> | |
28 | - <script type="text/javascript" src="{{ STATIC_URL }}third-party/jquery.debouncedresize.js"></script> | |
29 | - <script type="text/javascript" src="{{ STATIC_URL }}third-party/jquery.cookie.js"></script> | |
30 | - <script src="{{ STATIC_URL }}third-party/bootstrap/js/bootstrap.min.js"></script> | |
27 | + <script type="text/javascript" src="{% static 'third-party/jquery-2.0.3.min.js' %}"></script> | |
28 | + <script type="text/javascript" src="{% static 'third-party/jquery.debouncedresize.js' %}"></script> | |
29 | + <script type="text/javascript" src="{% static 'third-party/jquery.cookie.js' %}"></script> | |
30 | + <script src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script> | |
31 | 31 | |
32 | 32 | {% block head_js %}{% endblock %} |
33 | 33 | {% block head_css %}{% endblock %} |
... | ... | @@ -36,7 +36,7 @@ |
36 | 36 | {% conversejs_static %} |
37 | 37 | {% endif %} |
38 | 38 | |
39 | - <link rel="stylesheet" href="{{ STATIC_URL }}css/screen.css" | |
39 | + <link rel="stylesheet" href="{% static 'css/screen.css' %}" | |
40 | 40 | type="text/css" media="screen" /> |
41 | 41 | |
42 | 42 | {% endblock %} |
... | ... | @@ -206,8 +206,8 @@ |
206 | 206 | <p class="col-lg-12 text-center">{% trans "Last email imported at" %} {{ last_imported_message.received_time|date:'DATETIME_FORMAT' }}</p> |
207 | 207 | {% endif %} |
208 | 208 | <p class="col-lg-12 text-center"> |
209 | - <a href="{% url 'opendata' %}"><img src="{{ STATIC_URL }}img/opendata3.png"/></a> | |
210 | - <a href="http://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR"><img src="{{ STATIC_URL }}img/cc_by_sa.png"/></a> | |
209 | + <a href="{% url 'opendata' %}"><img src="{% static 'img/opendata3.png' %}"/></a> | |
210 | + <a href="http://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR"><img src="{% static 'img/cc_by_sa.png' %}"/></a> | |
211 | 211 | </p> |
212 | 212 | <p class="col-lg-12 text-center"> |
213 | 213 | {% trans "The contents of this site is published under license" %}: | ... | ... |
src/templates/doughnut-chart.html
1 | -{% load i18n %} | |
1 | +{% load i18n static %} | |
2 | 2 | |
3 | -<script src="{{ STATIC_URL }}third-party/chartjs/js/Chart.min.js"></script> | |
4 | -<script src="{{ STATIC_URL }}third-party/chroma/js/chroma.min.js"></script> | |
3 | +<script src="{% static 'third-party/chartjs/js/Chart.min.js' %}"></script> | |
4 | +<script src="{% static 'third-party/chroma/js/chroma.min.js' %}"></script> | |
5 | 5 | |
6 | 6 | <script> |
7 | 7 | $(function () { | ... | ... |
src/templates/dpaste/base.html
1 | 1 | {% extends 'base.html' %} |
2 | +{% load static %} | |
2 | 3 | |
3 | 4 | {% block head_css %} |
4 | -<link rel="stylesheet" href="{{ STATIC_URL }}dpaste/css/theme.css" | |
5 | - type="text/css" media="screen" /> | |
5 | +<link rel="stylesheet" href="{% static 'dpaste/css/theme.css' %}" type="text/css" media="screen" /> | |
6 | 6 | {% endblock %} |
7 | 7 | |
8 | 8 | {% block header %} | ... | ... |
src/templates/pizza-chart.html