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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (show annotations)
Mon Feb 19 16:28:00 2007 UTC (17 years, 3 months ago) by dpavlin
File size: 489 byte(s)
sweeping changes to include PubSub backend JiftyDBI to make publishing work,
re-organize templates into (hopefully) more meaningful hierarchy,
and a new Search action to drive it all.
1 <%ARGS>
2 $item
3 </%ARGS>
4 <%init>
5
6 my $desc = {
7 'category' => 'in',
8 'author' => 'by',
9 'issued' => 'published on',
10 'modified' => 'modified on',
11 };
12
13 </%init>
14
15 <div class="result">
16
17 <a class="title" href="<% $item->link %>"><% $item->title %></a>
18 <span class="feed">in <% $item->in_feed->title %></span>
19
20 % foreach my $f ( qw/category author issued modified/ ) {
21 % if ( $item->$f ) {
22 <span class="<% $f %>"><% ( $desc->{$f} || '' ) . ' ' . $item->$f %></span>
23 % }
24 % }
25
26 </div><!-- result -->

  ViewVC Help
Powered by ViewVC 1.1.26