Show More
@@ -1,97 +1,96 b'' | |||
|
1 | 1 | {% load staticfiles %} |
|
2 | 2 | {% load i18n %} |
|
3 | 3 | {% load l10n %} |
|
4 | 4 | {% load static from staticfiles %} |
|
5 | 5 | |
|
6 | 6 | <!DOCTYPE html> |
|
7 | 7 | <html> |
|
8 | 8 | <head> |
|
9 | 9 | <link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}" media="all"/> |
|
10 | 10 | <link rel="stylesheet" type="text/css" href="{% static 'css/3party/highlight.css' %}" media="all"/> |
|
11 | 11 | <link rel="stylesheet" type="text/css" href="{% static 'css/3party/jquery-ui.min.css' %}" media="all"/> |
|
12 | 12 | <link rel="stylesheet" type="text/css" href="{% static 'css/3party/jquery.contextMenu.min.css' %}" media="all"/> |
|
13 | 13 | <link rel="stylesheet" type="text/css" href="{% static theme_css %}" media="all"/> |
|
14 | 14 | |
|
15 | 15 | {% if rss_url %} |
|
16 | 16 | <link rel="alternate" type="application/rss+xml" href="{{ rss_url }}" title="{% trans 'Feed' %}"/> |
|
17 | 17 | {% endif %} |
|
18 | 18 | |
|
19 | 19 | <link rel="icon" type="image/png" |
|
20 | 20 | href="{% static 'favicon.png' %}"> |
|
21 | 21 | |
|
22 | 22 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
|
23 | 23 | <meta charset="utf-8"/> |
|
24 | 24 | |
|
25 | 25 | {% block head %}{% endblock %} |
|
26 | 26 | </head> |
|
27 | 27 | <body data-image-viewer="{{ image_viewer }}" |
|
28 | 28 | data-pow-difficulty="{{ pow_difficulty }}" |
|
29 | 29 | data-update-script="{% static 'js/updates.js' %}"> |
|
30 | 30 | <script src="{% static 'js/jquery-2.2.0.min.js' %}"></script> |
|
31 | 31 | |
|
32 | 32 | <header class="navigation_panel"> |
|
33 | 33 | <a class="link" href="{% url 'landing' %}">{{ site_name }}</a> |
|
34 | 34 | <a href="{% url 'index' %}" title="{% trans "All threads" %}">~~~</a>, |
|
35 | 35 | {% if tags_str %} |
|
36 | 36 | <form action="{% url 'index' %}" method="post" class="post-button-form">{% csrf_token %} |
|
37 | 37 | {% if only_favorites %} |
|
38 | 38 | <button name="method" value="toggle_fav" class="fav">★</button>, |
|
39 | 39 | {% else %} |
|
40 | 40 | <button name="method" value="toggle_fav" class="not_fav">★</button>, |
|
41 | 41 | {% endif %} |
|
42 | 42 | </form> |
|
43 | 43 | {{ tags_str|safe }}, |
|
44 | 44 | {% endif %} |
|
45 | <a href="{% url 'tags' %}" title="{% trans 'Tag management' %}">{% trans "tags" %}</a>, | |
|
46 | 45 | <a href="{% url 'search' %}" title="{% trans 'Search' %}">{% trans 'search' %}</a>, |
|
47 | 46 | <a href="{% url 'feed' %}" title="{% trans 'Feed' %}">{% trans 'feed' %}</a>, |
|
48 | 47 | <a href="{% url 'random' %}" title="{% trans 'Random images' %}">{% trans 'images' %}</a>{% if has_fav_threads %}, |
|
49 | 48 | |
|
50 | 49 | <a href="{% url 'feed' %}?favorites" id="fav-panel-btn">{% trans 'favorites' %} <span id="new-fav-post-count" {% if not new_post_count %}style="display: none" {% endif %}>{{ new_post_count }}</span></a> |
|
51 | 50 | {% endif %} |
|
52 | 51 | |
|
53 | 52 | {% if usernames %} |
|
54 | 53 | <a class="right-link link" href="{% url 'notifications' %}" title="{% trans 'Notifications' %}"> |
|
55 | 54 | {% trans 'Notifications' %} |
|
56 | 55 | {% ifnotequal new_notifications_count 0 %} |
|
57 | 56 | (<b>{{ new_notifications_count }}</b>) |
|
58 | 57 | {% endifnotequal %} |
|
59 | 58 | </a> |
|
60 | 59 | {% endif %} |
|
61 | 60 | |
|
62 | 61 | <a class="right-link link" href="{% url 'settings' %}">{% trans 'Settings' %}</a> |
|
63 | 62 | </header> |
|
64 | 63 | |
|
65 | 64 | <div id="fav-panel"><div class="post">{% trans "Loading..." %}</div></div> |
|
66 | 65 | |
|
67 | 66 | <script src="{% static 'js/3party/jquery-ui.min.js' %}"></script> |
|
68 | 67 | <script src="{% static 'js/3party/jquery.contextMenu.min.js' %}"></script> |
|
69 | 68 | |
|
70 | 69 | {% block content %}{% endblock %} |
|
71 | 70 | |
|
72 | 71 | <script src="{% static 'js/jquery.mousewheel.js' %}"></script> |
|
73 | 72 | <script src="{% static 'js/3party/highlight.min.js' %}"></script> |
|
74 | 73 | |
|
75 | 74 | <script src="{% url 'js_info_dict' %}"></script> |
|
76 | 75 | |
|
77 | 76 | <script src="{% static 'js/popup.js' %}"></script> |
|
78 | 77 | <script src="{% static 'js/image.js' %}"></script> |
|
79 | 78 | <script src="{% static 'js/refpopup.js' %}"></script> |
|
80 | 79 | <script src="{% static 'js/main.js' %}"></script> |
|
81 | 80 | |
|
82 | 81 | <footer class="navigation_panel"> |
|
83 | 82 | <b><a href="{% url "authors" %}">{{ site_name }}</a> {{ version }}</b> |
|
84 | 83 | {% block metapanel %}{% endblock %} |
|
85 | 84 | {% if rss_url %} |
|
86 | 85 | [<a href="{{ rss_url }}">RSS</a>] |
|
87 | 86 | {% endif %} |
|
88 | 87 | [<a href="{% url 'admin:index' %}">{% trans 'Admin' %}</a>] |
|
89 | 88 | [<a href="{% url 'index' %}?order=pub">{% trans 'New threads' %}</a>] |
|
90 | 89 | {% with ppd=posts_per_day|floatformat:2 %} |
|
91 | 90 | {% blocktrans %}Speed: {{ ppd }} posts per day{% endblocktrans %} |
|
92 | 91 | {% endwith %} |
|
93 | 92 | <a class="link" href="#top" id="up">{% trans 'Up' %}</a> |
|
94 | 93 | </footer> |
|
95 | 94 | |
|
96 | 95 | </body> |
|
97 | 96 | </html> |
@@ -1,17 +1,19 b'' | |||
|
1 | 1 | from django.shortcuts import render |
|
2 | 2 | |
|
3 | 3 | from boards.views.base import BaseBoardView |
|
4 | 4 | from boards.models.tag import Tag |
|
5 | 5 | |
|
6 | 6 | |
|
7 | 7 | PARAM_TAGS = 'all_tags' |
|
8 | 8 | |
|
9 | 9 | |
|
10 | # TODO This view is deprecated and should be removed in the future cause the tag | |
|
11 | # list is quite large and slow | |
|
10 | 12 | class AllTagsView(BaseBoardView): |
|
11 | 13 | |
|
12 | 14 | def get(self, request): |
|
13 | 15 | params = dict() |
|
14 | 16 | |
|
15 | 17 | params[PARAM_TAGS] = Tag.objects.get_not_empty_tags() |
|
16 | 18 | |
|
17 | 19 | return render(request, 'boards/tags.html', params) |
General Comments 0
You need to be logged in to leave comments.
Login now