Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

taglisting in ux2.

  • Loading branch information...
commit bdb15b9101fc4387566b17a65cb026acea1ce0b6 1 parent 5595cc6
@chrisrossi chrisrossi authored
Showing with 55 additions and 0 deletions.
  1. +1 −0  karl/application.py
  2. +54 −0 karl/ux2/templates/taglisting.pt
View
1  karl/application.py
@@ -84,6 +84,7 @@ def _get_egg_rev():
'templates/community_formish_form.pt': 'templates/formish_form.pt',
'templates/layout_formish_form.pt': 'templates/formish_form.pt',
'templates/community_tagcloud.pt': 'templates/tagcloud.pt',
+ 'templates/community_taglisting.pt': 'templates/taglisting.pt',
}
View
54 karl/ux2/templates/taglisting.pt
@@ -0,0 +1,54 @@
+<div xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:tal="http://xml.zope.org/namespaces/tal"
+ xmlns:metal="http://xml.zope.org/namespaces/metal"
+ metal:use-macro="main_template">
+
+<div metal:fill-slot="content">
+
+ <header>
+ <a class="rightFloatLink" title="View tag listing"
+ href="taglisting.html">Tag listing</a>
+
+ <h1>${layout.page_title}</h1>
+ </header>
+
+ <div id="taglisting"
+ metal:define-macro="taglisting">
+
+ <h2 class="tagsHeaderSpace">
+ <form id="tag-form" action="" method="post"
+ onsubmit="this.action='showtag/'+getElementById('tag-field').value;
+ return true"
+ ><tal:x tal:condition="crumbs|False" tal:content="crumbs">SYSTEM / Tags</tal:x
+ ><tal:x tal:condition="not crumbs|True">${layout.project_name} / Tags</tal:x> /
+ <input id="tag-field" class="tag_field" type="text" name="tag"
+ size="20" />
+ </form>
+ </h2>
+
+ <p>This page shows all the tags applied across ${layout.project_name}, with a
+ count of each tag.</p>
+
+ <table border="0" cellpadding="6" cellspacing="0">
+ <tr>
+ <th> Tag </th>
+ <th> Count </th>
+ </tr>
+
+ <tr tal:repeat="entry entries">
+ <td>
+ <a href="${layout.here_url}showtag/${entry['name']}"
+ >${entry['name']}</a>
+ </td>
+ <td>
+ ${entry['count']}
+ </td>
+ </tr>
+
+ </table>
+
+ </div>
+
+
+</div>
+</div>
Please sign in to comment.
Something went wrong with that request. Please try again.