Last change
on this file was
126,
checked in by peter, 8 years ago
|
HTML-escape the bookmark resource title or URI in the list display.
|
File size:
596 bytes
|
Rev | Line | |
---|
[111] | 1 | <ul class="main"> |
---|
| 2 | [% FOREACH resource IN resources %] |
---|
| 3 | <li> |
---|
| 4 | <span class="edit"> |
---|
[119] | 5 | (<a href="[% resource.id %]" class="edit-bookmark">Edit</a>) |
---|
[111] | 6 | </span> |
---|
[126] | 7 | <a href="[% resource.uri | html %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% ( resource.title or resource.uri ) | html %]</a> |
---|
[111] | 8 | <div class="tags"> |
---|
| 9 | [% FOREACH tag IN resource.tags %] |
---|
| 10 | [% IF loop.first %]([% END %]<a target="_self" href="?tag=[% tag %]">[% tag %]</a>[% IF loop.last %])[% ELSE %], [% END %] |
---|
| 11 | [% END %] |
---|
| 12 | </div> |
---|
| 13 | </li> |
---|
| 14 | [% END %] |
---|
| 15 | </ul> |
---|
| 16 | <!-- |
---|
| 17 | vim:syntax=html |
---|
| 18 | --> |
---|
Note: See
TracBrowser
for help on using the repository browser.