Skip to content

Commit

Permalink
use real tag data in package read
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 18, 2012
1 parent 1c24837 commit fc07b92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 1 addition & 8 deletions ckan/templates/package/read.html
Expand Up @@ -53,14 +53,7 @@ <h3>Resources</h3>
</py:if>
</section>
<section class="tags content">
<ul class="well tag-list">
<li><a class="tag" href="#">Tags</a></li>
<li><a class="tag" href="#">Tags</a></li>
<li><a class="tag" href="#">Tags</a></li>
<li><a class="tag" href="#">Tags</a></li>
<li><a class="tag" href="#">Tags</a></li>
<li><a class="tag" href="#">Tags</a></li>
</ul>
${h.snippet('snippets/tag_list.html', tags=c.pkg_dict.tags)}
</section>
<section class="content additional-info">
<h3>Additional Info</h3>
Expand Down
7 changes: 7 additions & 0 deletions ckan/templates/snippets/tag_list.html
@@ -0,0 +1,7 @@
<ul class="tag-list well" xmlns:py="http://genshi.edgewall.org/">
<py:for each="tag in tags">
<li py:if="not tag.get('vocabulary_id')">
${h.link_to(tag['display_name'], h.url_for(controller='tag', action='read', id=tag['name']), class_='tag')}
</li>
</py:for>
</ul>

0 comments on commit fc07b92

Please sign in to comment.