summaryrefslogtreecommitdiffstats
path: root/trunk
diff options
context:
space:
mode:
authorEgil Moeller <egil.moller@freecode.no>2010-03-12 21:34:24 +0100
committerEgil Moeller <egil.moller@freecode.no>2010-03-12 21:34:24 +0100
commit1bfcde5f269fe005e70a4eea176d71bac0f42dcb (patch)
tree010de9514f117e272e5087d09cabdec05c0a7977 /trunk
parent1d357551227a8e58eff504220de509ec82357095 (diff)
downloadetherpad-1bfcde5f269fe005e70a4eea176d71bac0f42dcb.tar.gz
etherpad-1bfcde5f269fe005e70a4eea176d71bac0f42dcb.tar.bz2
etherpad-1bfcde5f269fe005e70a4eea176d71bac0f42dcb.zip
List of tags for each match (could need cleanup)
Diffstat (limited to 'trunk')
-rw-r--r--trunk/etherpad/src/templates/tag/tag_search.ejs13
1 files changed, 8 insertions, 5 deletions
diff --git a/trunk/etherpad/src/templates/tag/tag_search.ejs b/trunk/etherpad/src/templates/tag/tag_search.ejs
index c7a1d4e..ccf38ff 100644
--- a/trunk/etherpad/src/templates/tag/tag_search.ejs
+++ b/trunk/etherpad/src/templates/tag/tag_search.ejs
@@ -110,7 +110,7 @@ limitations under the License. */ %>
<% } %>
<h1>Matching pads</h1>
- <ul>
+ <dl>
<% for (i = 0; i < matchingPads.length; i++) { %>
<%
var matchingPadId = matchingPads[i].ID;
@@ -120,11 +120,14 @@ limitations under the License. */ %>
matchingPadUrl = 'ep/pad/view/' + matchingPadId + '/latest';
}
%>
- <li>
- <h2><a href="/<%= matchingPadUrl %>"><%= matchingPadId %></a><h2>
- </li>
+ <dt><a href="/<%= matchingPadUrl %>"><%= matchingPadId %></a><dt>
+ <dd>
+ <% for (j = 0; j < matchingPads[i].TAGS.length; j++) { %>
+ <a href="/ep/tag/?query=<%= tagsToQuery(tags.filter(function (tag) { return tag != matchingPads[i].TAGS[j]}), antiTags) %>" class="tag" title="<%= matchingPads[i].TAGS[j] %> matches"><%= matchingPads[i].TAGS[j] %></a>
+ <% } %>
+ </dd>
<% } %>
- </ul>
+ </dl>
</div>
</div>
</div><!-- /padeditor -->