Changeset 111 in bookmarks for trunk


Ignore:
Timestamp:
02/17/16 17:41:27 (8 years ago)
Author:
peter
Message:

#6: Split the core HTML list of bookmarks into an included template.

Location:
trunk/lib/Bookmarks
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Bookmarks/list.tt

    r106 r111  
    118118      [% END %] 
    119119    </div> 
    120     <ul class="main"> 
    121       [%  FOREACH resource IN resources %] 
    122         <li> 
    123           <span class="edit"> 
    124             (<a href="[% resource.id %]" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); return false;">Edit</a>) 
    125           </span> 
    126           <a href="[% resource.uri | html %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> 
    127           <div class="tags"> 
    128             [% FOREACH tag IN resource.tags %] 
    129               [% IF loop.first %]([% END %]<a target="_self" href="?tag=[% tag %]">[% tag %]</a>[% IF loop.last %])[% ELSE %], [% END %] 
    130             [% END %] 
    131           </div> 
    132         </li> 
    133       [%  END %] 
    134     </ul> 
     120    [% INCLUDE list_core.tt %] 
    135121    <ul class="alternate-links"> 
    136122      [% FOREACH link IN links %] 
Note: See TracChangeset for help on using the changeset viewer.