##// END OF EJS Templates
Using static template tag for resources.
neko259 -
r260:9648bcc7 default
parent child Browse files
Show More
@@ -1,33 +1,35 b''
1 1 {% load staticfiles %}
2 2 {% load i18n %}
3 {% load static from staticfiles %}
3 4
4 5 <!DOCTYPE html>
5 6 <html>
6 7 <head>
7 8 <link rel="stylesheet" type="text/css"
8 href="{{ STATIC_URL }}css/base.css" media="all"/>
9 href="{% static 'css/base.css' %}" media="all"/>
9 10 <link rel="stylesheet" type="text/css"
10 href="{{ STATIC_URL }}css/{{ theme }}/base_page.css?6" media="all"/>
11 <link rel="alternate" type="application/rss+xml" href="rss/" title="
12 {% trans 'Feed' %}"/>
11 href="{% static theme_css %}" media="all"/>
12 <link rel="alternate" type="application/rss+xml" href="rss/" title=
13 "{% trans 'Feed' %}"/>
13 14
14 15 <link rel="icon" type="image/png"
15 href="{{ STATIC_URL }}favicon.png">
16 href="{% static 'favicon.png' %}">
16 17
17 18 <meta name="viewport" content="width=device-width, initial-scale=1"/>
18 19 <meta charset="utf-8"/>
20
19 21 {% block head %}{% endblock %}
20 22 </head>
21 23 <body>
22 <script src="{{ STATIC_URL }}js/jquery-2.0.1.min.js"></script>
23 <script src="{{ STATIC_URL }}js/jquery-ui-1.10.3.custom.min.js"></script>
24 <script src="{{ STATIC_URL }}js/jquery.mousewheel.js"></script>
24 <script src="{% static 'js/jquery-2.0.1.min.js' %}"></script>
25 <script src="{% static 'js/jquery-ui-1.10.3.custom.min.js' %}"></script>
26 <script src="{% static 'js/jquery.mousewheel.js' %}"></script>
25 27 <script src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
26 <script src="{{ STATIC_URL }}js/refmaps.js"></script>
27 <script src="{{ STATIC_URL }}js/panel.js"></script>
28 <script src="{{ STATIC_URL }}js/popup.js"></script>
29 <script src="{{ STATIC_URL }}js/image.js"></script>
30 <script src="{{ STATIC_URL }}js/main.js?1"></script>
28 <script src="{% static 'js/refmaps.js' %}"></script>
29 <script src="{% static 'js/panel.js' %}"></script>
30 <script src="{% static 'js/popup.js' %}"></script>
31 <script src="{% static 'js/image.js' %}"></script>
32 <script src="{% static 'js/main.js' %}"></script>
31 33
32 34 <div class="navigation_panel">
33 35 <a class="link" href="{% url 'index' %}">{% trans "All threads" %}</a>
@@ -3,6 +3,7 b''
3 3 {% load i18n %}
4 4 {% load markup %}
5 5 {% load cache %}
6 {% load static from staticfiles %}
6 7
7 8 {% block head %}
8 9 <title>Neboard - {{ posts.0.get_title }}</title>
@@ -11,7 +12,7 b''
11 12 {% block content %}
12 13 {% get_current_language as LANGUAGE_CODE %}
13 14
14 <script src="{{ STATIC_URL }}js/thread.js"></script>
15 <script src="{% static 'js/thread.js' }%"></script>
15 16
16 17 {% if posts %}
17 18 {% cache 600 thread_view posts.0.last_edit_time moderator LANGUAGE_CODE %}
@@ -375,7 +375,10 b' def _init_default_context(request):'
375 375 user = _get_user(request)
376 376 context['user'] = user
377 377 context['tags'] = user.get_sorted_fav_tags()
378 context['theme'] = _get_theme(request, user)
378
379 theme = _get_theme(request, user)
380 context['theme'] = theme
381 context['theme_css'] = 'css/' + theme + '/base_page.css'
379 382
380 383 moderate = user.get_setting(SETTING_MODERATE)
381 384 if moderate == 'True':
General Comments 0
You need to be logged in to leave comments. Login now