/[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

Annotation of /share/web/templates/fragments/item/short

Parent Directory Parent Directory | Revision Log Revision Log


Revision 169 - (hide annotations)
Wed Jul 4 09:58:06 2007 UTC (17 years ago) by dpavlin
File size: 496 byte(s)
update rest of code to new created_on and last_update
1 dpavlin 28 <%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 dpavlin 169 % foreach my $f ( qw/category author created_on last_update/ ) {
21 dpavlin 28 % 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