Changeset 57
- Timestamp:
- 04/05/07 05:08:56 (1 year ago)
- Files:
-
- trunk/Memories/Photo.pm (modified) (2 diffs)
- trunk/templates/photo/paged (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Memories/Photo.pm
r54 r57 66 66 $r->objects(\@photos); 67 67 if (@photos == 0) { $r->template("upload"); return } 68 if (@photos > 1) { $r->template ("list") }68 if (@photos > 1) { $r->template_args->{title} = "This upload"; $r->template("paged") } 69 69 else { $r->template("view"); } 70 70 $r->message("Thanks for the upload!"); … … 85 85 $r->{session}{quarantined} = join ",", sort keys %q; 86 86 if (!$r->{session}{quarantined}) { 87 $r->template ("list");87 $r->template_args->{title} = "This upload"; $r->template("paged"); 88 88 $r->objects([ map { $self->retrieve($_) } @quarantined ]); 89 89 } else { trunk/templates/photo/paged
r19 r57 1 1 [% INCLUDE header %] 2 2 [% PROCESS macros %] 3 <h1> Most [% request.action %] photos</h1>3 <h1> [% IF title; title | html; ELSE %] Most [% request.action %] photos [% END %]</h1> 4 4 <table class="userlist"> 5 5 [% WHILE photos.size > 0 %]
