Changeset 71 in bookmarks for trunk/lib/Bookmarks
- Timestamp:
- 02/13/14 16:10:42 (11 years ago)
- Location:
- trunk/lib/Bookmarks
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Bookmarks/Controller.pm
r70 r71 85 85 my $list = $self->bookmarks->get_bookmarks({ 86 86 query => $query, 87 tag 87 tags => \@tags, 88 88 limit => $limit, 89 89 offset => $offset, … … 104 104 105 105 # construct a feed from the most recent 12 bookmarks 106 my $list = $self->bookmarks->get_bookmarks({ query => $query, tag => \@tags, limit => 12 });106 my $list = $self->bookmarks->get_bookmarks({ query => $query, tags => \@tags, limit => 12 }); 107 107 return $list->as_atom; 108 108 } -
trunk/lib/Bookmarks/List.pm
r70 r71 6 6 use HTTP::Date qw{time2iso time2isoz}; 7 7 8 has bookmarks => (is => 'ro'); 9 has query => (is => 'ro'); 10 has tags => ( 8 has bookmarks => ( 11 9 is => 'ro', 12 default => sub { [] },10 isa => 'Bookmarks', 13 11 ); 14 has limit => (is => 'ro'); 15 has offset => (is => 'ro'); 12 has search => ( 13 is => 'ro', 14 isa => 'Bookmarks::Search', 15 handles => [qw{query tags limit offset}], 16 ); 16 17 has results => ( is => 'ro' ); 17 18 has title => ( … … 182 183 183 184 my @all_tags = $self->bookmarks->get_tags({ selected => @{ $self->tags }[0] }); 184 my @cotags = $self->bookmarks->get_cotags({ 185 query => $self->query, 186 tag => $self->tags, 187 }); 185 my @cotags = $self->bookmarks->get_cotags({ search => $self->search }); 188 186 189 187 $template->process(
Note: See TracChangeset
for help on using the changeset viewer.