/[Arh]/lib/Arh/View/UnitPictures.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Arh/View/UnitPictures.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 54 by dpavlin, Sun Apr 6 20:56:54 2008 UTC revision 61 by dpavlin, Mon Apr 7 14:33:31 2008 UTC
# Line 67  template 'view' => sub :CRUDView { Line 67  template 'view' => sub :CRUDView {
67          warn "## view id: $id unit $unit";          warn "## view id: $id unit $unit";
68    
69          form {          form {
70                  img { attr { src => "/pictures/show/" . $record->filename } }                  img { attr { src => "/static/pics/thumb/" . $record->thumbnail } }
71                  tt { $record->filename }                  tt { $record->filename }
72                  span { $record->type->name };                  span { $record->type->name };
73    
# Line 104  template 'new_picture' => sub { Line 104  template 'new_picture' => sub {
104          );          );
105    
106          my $attach_to =          my $attach_to =
107  #               Jifty->web->current_region->parent ?                  Jifty->web->current_region->parent ?
108  #               Jifty->web->current_region->parent->get_element( 'div.list' ) :                  Jifty->web->current_region->parent->get_element( 'div.list' ) :
109  #               Jifty->web->current_region;                  Jifty->web->current_region;
                 Jifty->web->current_region->parent->get_element( 'div.list' );  
110    
111          warn "## attach_to = $attach_to";          warn "## attach_to = $attach_to";
112    

Legend:
Removed from v.54  
changed lines
  Added in v.61

  ViewVC Help
Powered by ViewVC 1.1.26