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 |
<div class="result-header"> |
14 |
<span style="float: left;"> |
15 |
<a class="title" href="<% $item->link %>"><% $item->title %></a> |
16 |
<span class="feed">in <% $item->in_feed->title %></span> |
17 |
</span> |
18 |
<a class="skip-next" href="#a<% $item->id %>">>></a> |
19 |
</div> |
20 |
</div><!-- result-header --> |
21 |
|
22 |
<div class="content"> |
23 |
<% $item->content | n %> |
24 |
</div><!-- content --> |
25 |
|
26 |
<div class="result-footer"> |
27 |
% foreach my $f ( qw/category author issued modified/ ) { |
28 |
% if ( $item->$f ) { |
29 |
<span class="<% $f %>"><% $item->$f %></span> |
30 |
% } |
31 |
% } |
32 |
</div><!-- result-footer --> |
33 |
|
34 |
</div><!-- result --> |
35 |
<a name="a<% $item->id %>"/> |