Skip to content

Commit

Permalink
[#1301] Adds template blocks to tag_list
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin authored and wardi committed Apr 24, 2014
1 parent e994162 commit 2e10eae
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ckan/templates/snippets/tag_list.html
Expand Up @@ -3,10 +3,12 @@
tags: list of tags
#}
{% set _class = _class or 'tag-list' %}
<ul class="{{ _class }}">
{% for tag in tags %}
<li>
<a class="tag" href="{% url_for controller='package', action='search', tags=tag.name %}">{{ h.truncate(tag.display_name, 22) }}</a>
</li>
{% endfor %}
</ul>
{% block tag_list %}
<ul class="{{ _class }}">
{% for tag in tags %}
<li>
<a class="{% block tag_list_item_class %}tag{% endblock %}" href="{% url_for controller='package', action='search', tags=tag.name %}">{{ h.truncate(tag.display_name, 22) }}</a>
</li>
{% endfor %}
</ul>
{% endblock %}

0 comments on commit 2e10eae

Please sign in to comment.