|
Last change
on this file since 117 was
111,
checked in by peter, 10 years ago
|
|
#6: Split the core HTML list of bookmarks into an included template.
|
|
File size:
660 bytes
|
| Line | |
|---|
| 1 | <ul class="main"> |
|---|
| 2 | [% FOREACH resource IN resources %] |
|---|
| 3 | <li> |
|---|
| 4 | <span class="edit"> |
|---|
| 5 | (<a href="[% resource.id %]" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); return false;">Edit</a>) |
|---|
| 6 | </span> |
|---|
| 7 | <a href="[% resource.uri | html %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> |
|---|
| 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.