Changeset 11 in bookmarks for trunk


Ignore:
Timestamp:
06/07/12 18:05:23 (13 years ago)
Author:
peter
Message:
  • moved the display of tags for a bookmark to below the link in the list
  • each tag is a link to the list of bookmarks with that tag
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/list.tt

    r10 r11  
    2828} 
    2929li { 
    30     padding: .25em; 
     30    padding: .25em 0 0 .25em; 
    3131    color: #999; 
    3232    white-space: nowrap; 
     
    4343    margin: .5em; 
    4444} 
     45.tags a { 
     46    color: #999; 
     47    text-decoration: none; 
     48} 
     49.tags a:hover { 
     50    text-decoration: underline; 
     51} 
    4552.tags { 
    46     color: #666; 
     53    color: #999; 
     54    margin-top: .125em; 
     55    margin-left: 3em; 
     56    font-size: .875em; 
    4757} 
    4858    </style> 
     
    7282          </span> 
    7383          <a href="[% resource.uri %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> 
    74           <span class="tags">([% resource.tags.join(', ') %])</span> 
     84          <div class="tags"> 
     85            [% FOREACH tag IN resource.tags %] 
     86              [% IF loop.first %]([% END %]<a target="_self" href="?tag=[% tag %]">[% tag %]</a>[% IF loop.last %])[% ELSE %], [% END %] 
     87            [% END %] 
     88          </div> 
    7589        </li> 
    7690      [%  END %] 
Note: See TracChangeset for help on using the changeset viewer.