##// END OF EJS Templates
Don't cache tags list in template, template caches are considered a bad...
neko259 -
r1162:c448702a default
parent child Browse files
Show More
@@ -1,31 +1,28
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load cache %}
5
4
6 {% block head %}
5 {% block head %}
7 <title>Neboard - {% trans "Tags" %}</title>
6 <title>Neboard - {% trans "Tags" %}</title>
8 {% endblock %}
7 {% endblock %}
9
8
10 {% block content %}
9 {% block content %}
11
10
12 {% cache 600 all_tags_list query %}
13 <div class="post">
11 <div class="post">
14 {% if all_tags %}
12 {% if all_tags %}
15 {% for tag in all_tags %}
13 {% for tag in all_tags %}
16 <div class="tag_item">
14 <div class="tag_item">
17 {% autoescape off %}
15 {% autoescape off %}
18 {{ tag.get_view }}
16 {{ tag.get_view }}
19 {% endautoescape %}
17 {% endautoescape %}
20 </div>
18 </div>
21 {% endfor %}
19 {% endfor %}
22 {% else %}
20 {% else %}
23 {% trans 'No tags found.' %}
21 {% trans 'No tags found.' %}
24 {% endif %}
22 {% endif %}
25 {% if query %}
23 {% if query %}
26 <div><a href="{% url 'tags' %}">{% trans 'All tags' %}</a></div>
24 <div><a href="{% url 'tags' %}">{% trans 'All tags' %}</a></div>
27 {% endif %}
25 {% endif %}
28 </div>
26 </div>
29 {% endcache %}
30
27
31 {% endblock %}
28 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now