diff options
author | Egil Moeller <egil.moller@freecode.no> | 2010-03-12 21:34:24 +0100 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2010-03-12 21:34:24 +0100 |
commit | 1bfcde5f269fe005e70a4eea176d71bac0f42dcb (patch) | |
tree | 010de9514f117e272e5087d09cabdec05c0a7977 | |
parent | 1d357551227a8e58eff504220de509ec82357095 (diff) | |
download | etherpad-1bfcde5f269fe005e70a4eea176d71bac0f42dcb.tar.gz etherpad-1bfcde5f269fe005e70a4eea176d71bac0f42dcb.tar.xz etherpad-1bfcde5f269fe005e70a4eea176d71bac0f42dcb.zip |
List of tags for each match (could need cleanup)
Diffstat (limited to '')
-rw-r--r-- | trunk/etherpad/src/templates/tag/tag_search.ejs | 13 |
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 --> |