##// END OF EJS Templates
Other lookalike of favorite threads list
neko259 -
r1325:96250c6d default
parent child Browse files
Show More
@@ -1,87 +1,86 b''
1 {% load staticfiles %}
1 {% load staticfiles %}
2 {% load i18n %}
2 {% load i18n %}
3 {% load l10n %}
3 {% load l10n %}
4 {% load static from staticfiles %}
4 {% load static from staticfiles %}
5
5
6 <!DOCTYPE html>
6 <!DOCTYPE html>
7 <html>
7 <html>
8 <head>
8 <head>
9 <link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}" media="all"/>
9 <link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}" media="all"/>
10 <link rel="stylesheet" type="text/css" href="{% static 'css/3party/highlight.css' %}" media="all"/>
10 <link rel="stylesheet" type="text/css" href="{% static 'css/3party/highlight.css' %}" media="all"/>
11 <link rel="stylesheet" type="text/css" href="{% static 'css/3party/jquery-ui.min.css' %}" media="all"/>
11 <link rel="stylesheet" type="text/css" href="{% static 'css/3party/jquery-ui.min.css' %}" media="all"/>
12 <link rel="stylesheet" type="text/css" href="{% static theme_css %}" media="all"/>
12 <link rel="stylesheet" type="text/css" href="{% static theme_css %}" media="all"/>
13
13
14 <link rel="alternate" type="application/rss+xml" href="rss/" title="{% trans 'Feed' %}"/>
14 <link rel="alternate" type="application/rss+xml" href="rss/" title="{% trans 'Feed' %}"/>
15
15
16 <link rel="icon" type="image/png"
16 <link rel="icon" type="image/png"
17 href="{% static 'favicon.png' %}">
17 href="{% static 'favicon.png' %}">
18
18
19 <meta name="viewport" content="width=device-width, initial-scale=1"/>
19 <meta name="viewport" content="width=device-width, initial-scale=1"/>
20 <meta charset="utf-8"/>
20 <meta charset="utf-8"/>
21
21
22 {% block head %}{% endblock %}
22 {% block head %}{% endblock %}
23 </head>
23 </head>
24 <body data-image-viewer="{{ image_viewer }}">
24 <body data-image-viewer="{{ image_viewer }}">
25 <script src="{% static 'js/jquery-2.0.1.min.js' %}"></script>
25 <script src="{% static 'js/jquery-2.0.1.min.js' %}"></script>
26 <script src="{% static 'js/3party/jquery-ui.min.js' %}"></script>
26 <script src="{% static 'js/3party/jquery-ui.min.js' %}"></script>
27 <script src="{% static 'js/jquery.mousewheel.js' %}"></script>
27 <script src="{% static 'js/jquery.mousewheel.js' %}"></script>
28 <script src="{% url 'js_info_dict' %}"></script>
28 <script src="{% url 'js_info_dict' %}"></script>
29
29
30 <div class="navigation_panel header">
30 <div class="navigation_panel header">
31 <div>
32 <a class="link" href="{% url 'index' %}">{% trans "All threads" %}</a>
31 <a class="link" href="{% url 'index' %}">{% trans "All threads" %}</a>
33 {% if tags_str %}
32 {% if tags_str %}
34 {% autoescape off %}
33 {% autoescape off %}
35 {{ tags_str }},
34 {{ tags_str }},
36 {% endautoescape %}
35 {% endautoescape %}
37 {% else %}
36 {% else %}
38 {% trans 'Add tags' %} →
37 {% trans 'Add tags' %} →
39 {% endif %}
38 {% endif %}
40 <a href="{% url 'tags' 'required'%}" title="{% trans 'Tag management' %}">{% trans "tags" %}</a>,
39 <a href="{% url 'tags' 'required'%}" title="{% trans 'Tag management' %}">{% trans "tags" %}</a>,
41 <a href="{% url 'search' %}" title="{% trans 'Search' %}">{% trans 'search' %}</a>,
40 <a href="{% url 'search' %}" title="{% trans 'Search' %}">{% trans 'search' %}</a>,
42 <a href="{% url 'feed' %}" title="{% trans 'Feed' %}">{% trans 'feed' %}</a>,
41 <a href="{% url 'feed' %}" title="{% trans 'Feed' %}">{% trans 'feed' %}</a>,
43 <a href="{% url 'random' %}" title="{% trans 'Random images' %}">{% trans 'random' %}</a>
42 <a href="{% url 'random' %}" title="{% trans 'Random images' %}">{% trans 'random' %}</a>
44
43
45 {% if username %}
44 {% if username %}
46 <a class="right-link link" href="{% url 'notifications' username %}" title="{% trans 'Notifications' %}">
45 <a class="right-link link" href="{% url 'notifications' username %}" title="{% trans 'Notifications' %}">
47 {% trans 'Notifications' %}
46 {% trans 'Notifications' %}
48 {% ifnotequal new_notifications_count 0 %}
47 {% ifnotequal new_notifications_count 0 %}
49 (<b>{{ new_notifications_count }}</b>)
48 (<b>{{ new_notifications_count }}</b>)
50 {% endifnotequal %}
49 {% endifnotequal %}
51 </a>
50 </a>
52 {% endif %}
51 {% endif %}
53
52
54 <a class="right-link link" href="{% url 'settings' %}">{% trans 'Settings' %}</a>
53 <a class="right-link link" href="{% url 'settings' %}">{% trans 'Settings' %}</a>
54 </div>
55
56 {% if fav_threads %}
57 <div class="image-mode-tab">
58
59 {% for thread in fav_threads %}
60 {% comment %}
61 If there are new posts in the thread, show their count.
62 {% endcomment %}
63 {{ thread.0.get_link_view|safe }}{% if thread.1 %} (+{{ thread.1 }}){% endif %}{% if not forloop.last %}, {% endif %}
64 {% endfor %}
55 </div>
65 </div>
56 {% if fav_threads %}
66 {% endif %}
57 <div>
58 <span class="fav"></span>
59 {% for thread in fav_threads %}
60 {% comment %}
61 If there are new posts in the thread, show their count.
62 {% endcomment %}
63 {{ thread.0.get_link_view|safe }}{% if thread.1 %} (+{{ thread.1 }}){% endif %}{% if not forloop.last %}, {% endif %}
64 {% endfor %}
65 </div>
66 {% endif %}
67 </div>
68
67
69 {% block content %}{% endblock %}
68 {% block content %}{% endblock %}
70
69
71 <script src="{% static 'js/3party/highlight.min.js' %}"></script>
70 <script src="{% static 'js/3party/highlight.min.js' %}"></script>
72 <script src="{% static 'js/popup.js' %}"></script>
71 <script src="{% static 'js/popup.js' %}"></script>
73 <script src="{% static 'js/image.js' %}"></script>
72 <script src="{% static 'js/image.js' %}"></script>
74 <script src="{% static 'js/refpopup.js' %}"></script>
73 <script src="{% static 'js/refpopup.js' %}"></script>
75 <script src="{% static 'js/main.js' %}"></script>
74 <script src="{% static 'js/main.js' %}"></script>
76
75
77 <div class="navigation_panel footer">
76 <div class="navigation_panel footer">
78 {% block metapanel %}{% endblock %}
77 {% block metapanel %}{% endblock %}
79 [<a href="{% url 'admin:index' %}">{% trans 'Admin' %}</a>]
78 [<a href="{% url 'admin:index' %}">{% trans 'Admin' %}</a>]
80 {% with ppd=posts_per_day|floatformat:2 %}
79 {% with ppd=posts_per_day|floatformat:2 %}
81 {% blocktrans %}Speed: {{ ppd }} posts per day{% endblocktrans %}
80 {% blocktrans %}Speed: {{ ppd }} posts per day{% endblocktrans %}
82 {% endwith %}
81 {% endwith %}
83 <a class="link" href="#top" id="up">{% trans 'Up' %}</a>
82 <a class="link" href="#top" id="up">{% trans 'Up' %}</a>
84 </div>
83 </div>
85
84
86 </body>
85 </body>
87 </html>
86 </html>
General Comments 0
You need to be logged in to leave comments. Login now