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 | </%init> |
10 | |
11 | <div class="result"> |
12 | |
13 | <a class="title" href="<% $item->link %>"><% $item->title %></a> |
14 | <span class="feed">in <% $item->in_feed->title %></span> |
15 | <a class="skip-next" href="#a<% $item->id %>">>></a> |
16 | |
17 | <div class="content"> |
18 | <% $item->content | n %> |
19 | </div><!-- content --> |
20 | |
21 | % foreach my $f ( qw/category author issued modified/ ) { |
22 | % if ( $item->$f ) { |
23 | <span class="<% $f %>"><% $item->$f %></span> |
24 | % } |
25 | % } |
26 | |
27 | </div><!-- result --> |
28 | <a name="a<% $item->id %>"/> |
ViewVC Help | |
Powered by ViewVC 1.1.26 |