Changeset 21 in bookmarks for trunk/list.tt


Ignore:
Timestamp:
05/21/13 18:19:33 (11 years ago)
Author:
peter
Message:
  • added links to the JSON and XBEL formats of the current list
  • all links to the current list take into account the full list of tags in the query
  • minor style tweaks to the cotags list
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/list.tt

    r20 r21  
    3131    height: 15%; 
    3232} 
     33.refine form { 
     34    margin: 0; 
     35} 
     36.buttons { 
     37    margin: .5em; 
     38} 
    3339.cotags { 
    3440    height: 100%; 
    35     border: 1px dotted #999; 
     41    border-top: 1px dotted #999; 
     42    border-bottom: 1px dotted #999; 
    3643} 
    3744ul.main, ul.cotags { 
     
    94101      [%  END %] 
    95102    </ul> 
    96     <form method="get" action="" id="reload"> 
    97       <div> 
    98         [% IF selected_tag %] 
    99           <a href="?tag=[% selected_tag %]">[% selected_tag %] links</a> &middot; 
    100           <a href="feed?tag=[% selected_tag %]" type="application/atom+xml">Atom Feed</a> 
    101           <input type="hidden" name="tag" value="[% selected_tag %]"/> 
    102         [% END %] 
    103         <input type="submit" value="Reload"/> 
    104       </div> 
    105     </form> 
     103    [% IF search_tags.size %] 
     104    <!-- TODO: well-formatted query strings if there is no tag query --> 
     105      <p> 
     106        <a href="?[% tag_query %]">Link</a> &middot; 
     107        <a href="?[% tag_query %]&format=json" type="application/json">JSON</a> &middot; 
     108        <a href="?[% tag_query %]&format=xbel" type="application/xml">XBEL</a> &middot; 
     109        <a href="feed?[% tag_query %]" type="application/atom+xml">Atom</a> 
     110      </p> 
     111    [% END %] 
    106112    <div class="refine"> 
    107113      <form method="get" action=""> 
     
    130136          [% END %] 
    131137        </div> 
    132         <div> 
     138        <div class="buttons"> 
    133139          <input type="submit" value="Refine"/> 
    134140        </div> 
Note: See TracChangeset for help on using the changeset viewer.