/[Grep]/share/web/templates/fragments/result
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /share/web/templates/fragments/result

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (show annotations)
Sat Feb 17 23:32:33 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 602 byte(s)
huge sweeping changes including: PubSub infrastructure and well results :-)
1 <%ARGS>
2 $event => undef
3 $item => undef
4 </%ARGS>
5 <%init>
6
7 die "need event or item!" unless ($event or $item);
8
9 # unpack item from event
10 $item = $$event if ($event);
11
12 die "don't have item" unless ($item);
13
14 use Data::Dump qw/dump/;
15 warn "item = ",dump($item);
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 <div class="content">
25 <% $item->content | n %>
26 </div>
27
28 % foreach my $f ( qw/category author issued modified/ ) {
29 % if ( $item->$f ) {
30 <span class="<% $f %>"><% $item->$f %></span>
31 % }
32 % }
33

  ViewVC Help
Powered by ViewVC 1.1.26