Changeset 66 in bookmarks for trunk/BookmarkController.pm
- Timestamp:
- 02/04/14 15:21:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BookmarkController.pm
r64 r66 119 119 $template->process( 120 120 'bookmark.tt', 121 { 122 uri => $self->request->param('uri'), 123 title => $self->request->param('title') || '', 121 { 122 bookmark => { 123 uri => $self->request->param('uri'), 124 title => $self->request->param('title') || '', 125 }, 124 126 }, 125 127 \my $output, … … 337 339 } else { 338 340 # display the bookmark form for this bookmark 339 # TODO: these should probably be methods on the Bookmark class340 $bookmark->{exists} = 1;341 $bookmark->{created} = localtime($bookmark->ctime);342 $bookmark->{updated} = localtime($bookmark->mtime);343 ($bookmark->{created_iso} = time2isoz($bookmark->ctime)) =~ s/\D//g;344 ($bookmark->{updated_iso} = time2isoz($bookmark->mtime)) =~ s/\D//g;345 341 my $template = Template->new; 346 342 $template->process( 347 343 'bookmark.tt', 348 $bookmark,344 { bookmark => $bookmark }, 349 345 \my $output, 350 346 );
Note: See TracChangeset
for help on using the changeset viewer.