-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Rossi
committed
Apr 9, 2012
1 parent
9ebf783
commit 793e847
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<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="tagcloud" | ||
metal:define-macro="tagcloud"> | ||
<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 is the ${layout.project_name} tag cloud - a list of tags where size reflect | ||
popularity.</p> | ||
|
||
<span tal:repeat="e entries" | ||
tal:attributes="class e['class']"> | ||
<a href="#" title="" | ||
tal:attributes="href string:showtag/${e['name']}; | ||
title | ||
string:count: ${e['count']}, weight: ${e['weight']}; | ||
" | ||
tal:content="e['name']">NAME</a> </span> | ||
|
||
</div> | ||
|
||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters