Changeset 57

Show
Ignore:
Timestamp:
04/05/07 05:08:56 (1 year ago)
Author:
simon
Message:

Always used the "paged" template for multiple photo display. Fixes #19.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Memories/Photo.pm

    r54 r57  
    6666    $r->objects(\@photos); 
    6767    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") }  
    6969    else { $r->template("view"); } 
    7070    $r->message("Thanks for the upload!");  
     
    8585    $r->{session}{quarantined} = join ",", sort keys %q; 
    8686    if (!$r->{session}{quarantined}) { 
    87         $r->template("list"); 
     87        $r->template_args->{title} = "This upload"; $r->template("paged"); 
    8888        $r->objects([ map { $self->retrieve($_) } @quarantined ]); 
    8989    } else { 
  • trunk/templates/photo/paged

    r19 r57  
    11[% INCLUDE header %] 
    22[% PROCESS macros %] 
    3 <h1> Most [% request.action %] photos </h1> 
     3<h1> [% IF title; title | html; ELSE %] Most [% request.action %] photos [% END %]</h1> 
    44<table class="userlist"> 
    55[% WHILE photos.size > 0 %]