- Timestamp:
- 09/10/13 16:54:01 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BookmarkController.pm
r63 r64 337 337 } else { 338 338 # display the bookmark form for this bookmark 339 # TODO: these should probably be methods on the Bookmark class 339 340 $bookmark->{exists} = 1; 340 $bookmark->{created} = "Created " . localtime($bookmark->ctime); 341 $bookmark->{created} .= '; Updated ' . localtime($bookmark->mtime) unless $bookmark->ctime == $bookmark->mtime; 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; 342 345 my $template = Template->new; 343 346 $template->process( -
trunk/bookmark.tt
r45 r64 5 5 body, th, td { 6 6 font-size: .875em; 7 } 8 h1 { 9 font-size: 1.25em; 7 10 } 8 11 li { … … 17 20 <body> 18 21 <div> 22 <h1> 19 23 [% UNLESS exists %] 20 24 <strong>New bookmark:</strong> 21 25 [% END %] 22 26 <a href="[% uri | html %]" target="_blank">[% title or uri %]</a> 27 </h1> 23 28 [% IF exists %] 24 <p class="timestamps">[% created %]</p> 29 <p class="timestamps"> 30 Bookmark created <a href="http://web.archive.org/web/[% created_iso %]/[% uri %]" title="Nearest Wayback Machine Link" target="_blank">[% created %]</a>[% IF mtime != ctime %]; updated 31 <a href="http://web.archive.org/web/[% updated_iso %]/[% uri %]" title="Nearest Wayback Machine Link" target="_blank">[% updated %]</a>[% END %] 32 </p> 25 33 [% IF tags.size %] 26 34 <p class="tags">Tagged as:
Note: See TracChangeset
for help on using the changeset viewer.