##// END OF EJS Templates
Don't show tag children, only a parent
neko259 -
r1350:fce14c9c default
parent child Browse files
Show More
@@ -73,22 +73,14 b''
73 <p>{{ tag.get_description|safe }}</p>
73 <p>{{ tag.get_description|safe }}</p>
74 {% endif %}
74 {% endif %}
75 <p>{% blocktrans with active_thread_count=tag.get_active_thread_count thread_count=tag.get_thread_count post_count=tag.get_post_count %}This tag has {{ thread_count }} threads ({{ active_thread_count}} active) and {{ post_count }} posts.{% endblocktrans %}</p>
75 <p>{% blocktrans with active_thread_count=tag.get_active_thread_count thread_count=tag.get_thread_count post_count=tag.get_post_count %}This tag has {{ thread_count }} threads ({{ active_thread_count}} active) and {{ post_count }} posts.{% endblocktrans %}</p>
76 {% with children=tag.get_children.all %}
76 {% if tag.get_parent %}
77 {% if tag.get_parent or children %}
78 <p>
77 <p>
79 {% if tag.get_parent %}
78 {% if tag.get_parent %}
80 {{ tag.get_parent.get_view|safe }} /
79 {{ tag.get_parent.get_view|safe }} /
81 {% endif %}
80 {% endif %}
82 {{ tag.get_view|safe }}
81 {{ tag.get_view|safe }}
83 {% if children %}
84 /
85 {% for child in children %}
86 {{ child.get_view|safe }}{% if not forloop.last %}, {% endif %}
87 {% endfor %}
88 {% endif %}
89 </p>
82 </p>
90 {% endif %}
83 {% endif %}
91 {% endwith %}
92 </div>
84 </div>
93 </div>
85 </div>
94 {% endif %}
86 {% endif %}
General Comments 0
You need to be logged in to leave comments. Login now