Changeset 16 in bookmarks


Ignore:
Timestamp:
03/08/13 12:57:18 (12 years ago)
Author:
peter
Message:
  • added a link to the feed by tag if a ?tag is specified
  • if a ?tag is specified, the feed title is now "Bookmarks tagged as $tag"
  • removed the unworking "New Bookmark" link from the list
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BookmarkApp.pm

    r15 r16  
    122122 
    123123    my $feed = XML::Atom::Feed->new; 
    124     $feed->title('Bookmarks'); 
     124    $feed->title('Bookmarks' . ($tag ? " tagged as $tag" : '')); 
    125125    $feed->id($base_uri . 'feed'); 
    126126 
  • trunk/list.tt

    r11 r16  
    9292    [% IF selected_tag %] 
    9393      <p> 
    94         <a href="?tag=[% selected_tag %]">[% selected_tag %] links</a> 
     94        <a href="?tag=[% selected_tag %]">[% selected_tag %] links</a> &middot; 
     95        <a href="feed?tag=[% selected_tag %]" type="application/atom+xml">Atom Feed</a> 
    9596      </p> 
    9697    [% END %] 
    97     <p> 
    98       <a href="?uri=" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250'); return false;">New Bookmark</a> 
    99     </p> 
    10098    <form method="get" action=""> 
    10199      [% IF selected_tag %] 
Note: See TracChangeset for help on using the changeset viewer.