}
$r->objects(\@photos);
if (@photos == 0) { $r->template("upload"); return }
- if (@photos > 1) { $r->template("list") }
+ if (@photos > 1) { $r->template_args->{title} = "This upload"; $r->template("paged") }
else { $r->template("view"); }
$r->message("Thanks for the upload!");
}
}
$r->{session}{quarantined} = join ",", sort keys %q;
if (!$r->{session}{quarantined}) {
- $r->template("list");
+ $r->template_args->{title} = "This upload"; $r->template("paged");
$r->objects([ map { $self->retrieve($_) } @quarantined ]);
} else {
$r->objects([ map { $self->retrieve($_) } sort keys %q ]);
[% INCLUDE header %]
[% PROCESS macros %]
-<h1> Most [% request.action %] photos </h1>
+<h1> [% IF title; title | html; ELSE %] Most [% request.action %] photos [% END %]</h1>
<table class="userlist">
[% WHILE photos.size > 0 %]
[% SET triple = photos.splice(0,3) %]