##// END OF EJS Templates
Show each new tag letter in the new line
neko259 -
r1268:59984fb1 default
parent child Browse files
Show More
@@ -1,47 +1,47 b''
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4
4
5 {% block head %}
5 {% block head %}
6 <title>Neboard - {% trans "Tags" %}</title>
6 <title>Neboard - {% trans "Tags" %}</title>
7 {% endblock %}
7 {% endblock %}
8
8
9 {% block content %}
9 {% block content %}
10
10
11 {% regroup section_tags by get_first_letter as section_tag_list %}
11 {% regroup section_tags by get_first_letter as section_tag_list %}
12 {% regroup all_tags by get_first_letter as other_tag_list %}
12 {% regroup all_tags by get_first_letter as other_tag_list %}
13
13
14 <div class="post">
14 <div class="post">
15 {% if section_tags %}
15 {% if section_tags %}
16 <div>
16 <div>
17 {% trans 'Sections:' %}
17 {% trans 'Sections:' %}
18 {% for letter in section_tag_list %}
18 {% for letter in section_tag_list %}
19 ({{ letter.grouper|upper }})
19 <br />({{ letter.grouper|upper }})
20 {% for tag in letter.list %}
20 {% for tag in letter.list %}
21 {% autoescape off %}
21 {% autoescape off %}
22 {{ tag.get_view }}{% if not forloop.last %},{% endif %}
22 {{ tag.get_view }}{% if not forloop.last %},{% endif %}
23 {% endautoescape %}
23 {% endautoescape %}
24 {% endfor %}
24 {% endfor %}
25 {% endfor %}
25 {% endfor %}
26 </div>
26 </div>
27 {% endif %}
27 {% endif %}
28 {% if all_tags %}
28 {% if all_tags %}
29 <div>
29 <div>
30 {% trans 'Other tags:' %}
30 {% trans 'Other tags:' %}
31 {% for letter in other_tag_list %}
31 {% for letter in other_tag_list %}
32 ({{ letter.grouper|upper }})
32 <br />({{ letter.grouper|upper }})
33 {% for tag in letter.list %}
33 {% for tag in letter.list %}
34 {% autoescape off %}
34 {% autoescape off %}
35 {{ tag.get_view }}{% if not forloop.last %},{% endif %}
35 {{ tag.get_view }}{% if not forloop.last %},{% endif %}
36 {% endautoescape %}
36 {% endautoescape %}
37 {% endfor %}
37 {% endfor %}
38 {% endfor %}
38 {% endfor %}
39 </div>
39 </div>
40 {% endif %}
40 {% endif %}
41
41
42 {% if query %}
42 {% if query %}
43 <div><a href="{% url 'tags' %}">{% trans 'All tags...' %}</a></div>
43 <div><a href="{% url 'tags' %}">{% trans 'All tags...' %}</a></div>
44 {% endif %}
44 {% endif %}
45 </div>
45 </div>
46
46
47 {% endblock %}
47 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now