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