Changeset 3 in bookmarks for trunk/index.cgi
- Timestamp:
 - 03/02/12 20:51:06 (14 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          trunk/index.cgi (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
trunk/index.cgi
r2 r3 98 98 } 99 99 } else { 100 #print $q->header('text/html'); 101 #print "TODO: list bookmarks"; 102 #return; 103 # list all the resources 104 my $format = $q->param('format'); 100 # list all the bookmarks 101 my $format = $q->param('format') || 'html'; 105 102 my $tag = $q->param('tag'); 106 103 my @resources = $bookmarks->get_resources({ tag => $tag }); … … 123 120 -charset => 'UTF-8', 124 121 ); 122 123 # set the base URL, adding a trailing slash if needed 124 my $base_url = $q->url; 125 $base_url .= '/' if $base_url =~ m{/bookmarks$}; 126 125 127 $template->process( 126 128 'list.tt', 127 129 { 130 base_url => $base_url, 128 131 selected_tag => $tag, 129 132 tags => \@all_tags,  
Note: See TracChangeset
          for help on using the changeset viewer.
      