/[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 16 - (show annotations)
Sun Feb 18 01:07:52 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 728 byte(s)
a bit more css
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 <a class="skip-next" href="#a<% $item->id %>">&gt;&gt;</a>
24
25 <div class="content">
26 <% $item->content | n %>
27 </div><!-- content -->
28
29 % foreach my $f ( qw/category author issued modified/ ) {
30 % if ( $item->$f ) {
31 <span class="<% $f %>"><% $item->$f %></span>
32 % }
33 % }
34
35 </div><!-- result -->
36 <a name="a<% $item->id %>"/>

  ViewVC Help
Powered by ViewVC 1.1.26