Skip to content

Commit

Permalink
[#421] Adds tag index page
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Mar 13, 2013
1 parent ea27c01 commit bb94e62
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions ckan/templates/tag/index.html
@@ -0,0 +1,33 @@
{% extends "page.html" %}

{% block subtitle %}{{ _('Tags') }}{% endblock %}

{% block breadcrumb_content %}
<li class="active"><a href="">{{ _('Tags') }}</a></li>
{% endblock %}

{% block primary_content %}
<article class="module">
<div class="module-content">
<h1 class="page-heading">{{ _('Tags') }}</h1>
<ul class="unstyled">
{% for tag in c.page.items %}
<li>{{ h.link_to(tag.display_name, h.url_for(controller='package', action='search', tags=tag.name), class_='tag') }}</li>
{% endfor %}
</ul>
</div>
{{ c.page.pager(q=c.q) }}
</article>
{% endblock %}

{% block secondary_content %}
<section class="module module-narrow module-shallow simple-input">
<form class="module-content field-bordered" action="{% url_for controller='tag', action='index' %}" method="get">
<div class="field">
<label for="field-tag-search">{{ _('Search Tags') }}</label>
<input id="field-tag-search" type="text" class="field" name="q" placeholder="{{ _('Search Tags') }}" />
<button class="btn-search" type="submit">{{ _('Search') }}</button>
</div>
</form>
</section>
{% endblock %}

0 comments on commit bb94e62

Please sign in to comment.