/[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 24 - (show annotations)
Sun Feb 18 20:09:08 2007 UTC (17 years, 3 months ago) by dpavlin
File size: 645 byte(s)
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 %>">&gt;&gt;</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