2013-05-28 02:15:01 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
2013-07-28 09:43:18 +00:00
|
|
|
<p>A list of all tags with article counts is below:</p>
|
|
|
|
<ul class="tag-list">
|
|
|
|
{% set all_tags = [] %}
|
|
|
|
{% for tag, articles in tags %}
|
|
|
|
{% if all_tags.append({'name': tag.name, 'url': tag.url, 'articles': articles|length() }) %}{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% for tag in all_tags | sort(reverse=True, attribute = 'articles') %}
|
|
|
|
<li><a href="{{ tag.url }}">{{ tag.name }}<span>{{ tag.articles }}</span></a></li>
|
|
|
|
{% endfor %}
|
2013-07-14 04:58:23 +00:00
|
|
|
</ul>
|
|
|
|
{% endblock %}
|