/[Arh]/lib/Arh/View.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.pm

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

revision 79 by dpavlin, Sat Apr 19 22:46:42 2008 UTC revision 80 by dpavlin, Sat Apr 19 23:07:08 2008 UTC
# Line 99  template '/index.html' => page { Line 99  template '/index.html' => page {
99                  for ( 1 .. $last ) {                  for ( 1 .. $last ) {
100                          my $unit = $units->next || last;                          my $unit = $units->next || last;
101                          li {                          li {
102                                  outs( $unit->name, ' ' );                                  div {
103                                  hyperlink(                                          outs( $unit->name, ' ' );
104                                          label => $unit->unit_id,                                          hyperlink(
105                                          url => '/units/single?id=' . $unit->id,                                                  label => $unit->unit_id,
106                                  );                                                  url => '/unit/' . $unit->id,
107                                  span { class is 'unit details';                                          );
108                                    }
109                                    div { class is 'unit details';
110                                          outs join(', ', grep(defined($_),                                          outs join(', ', grep(defined($_),
111                                                  $unit->subcategory,                                                  $unit->subcategory,
112                                                  $unit->category->name,                                                  $unit->category->name,

Legend:
Removed from v.79  
changed lines
  Added in v.80

  ViewVC Help
Powered by ViewVC 1.1.26