/[Grep]/share/web/templates/fragments/result_short
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_short

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: 633 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
10 my $desc = {
11 'category' => 'in',
12 'author' => 'by',
13 'issued' => 'published on',
14 'modified' => 'modified on',
15 };
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 % foreach my $f ( qw/category author issued modified/ ) {
25 % if ( $item->$f ) {
26 <span class="<% $f %>"><% ( $desc->{$f} || '' ) . ' ' . $item->$f %></span>
27 % }
28 % }
29
30 </div><!-- result -->

  ViewVC Help
Powered by ViewVC 1.1.26