Parent Directory
|
Revision Log
Major re-work of templates, to enable helper local results on the right while fetching new search resuts from remote feeds.
1 | <%ARGS> |
2 | $event => undef |
3 | $item => undef |
4 | </%ARGS> |
5 | <%init> |
6 | die "need event or item!" unless ($event or $item); |
7 | $item = $$event if ($event); |
8 | die "don't have item" unless ($item); |
9 | |
10 | my $desc = { |
11 | 'category' => 'in', |
12 | 'author' => 'by', |
13 | 'issued' => 'published on', |
14 | 'modified' => 'modified on', |
15 | }; |
16 | |
17 | </%init> |
18 | |
19 | <div class="result"> |
20 | |
21 | <a class="title" href="<% $item->link %>"><% $item->title %></a> |
22 | <span class="feed">in <% $item->in_feed->title %></span> |
23 | |
24 | % foreach my $f ( qw/category author issued modified/ ) { |
25 | % if ( $item->$f ) { |
26 | <span class="<% $f %>"><% ( $desc->{$f} || '' ) . ' ' . $item->$f %></span> |
27 | % } |
28 | % } |
29 | |
30 | </div><!-- result --> |
ViewVC Help | |
Powered by ViewVC 1.1.26 |