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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 138 - (show annotations)
Sun May 6 22:37:32 2007 UTC (17 years ago) by dpavlin
File size: 1292 byte(s)
Added delete button [X] to results which will remove item from local cache,
fixed html for results so that jump to next result will now always work :-)
1 <%ARGS>
2 $item
3 $pos => undef
4 $prev => undef
5 $next => undef
6 </%ARGS>
7
8 <div class="result" id="r<% $pos %>">
9 <!-- scroll to this anchor -->
10 % if ( $pos ) {
11 <a name="r<% $pos %>" id="i<% $pos %>" />
12 % }
13
14 <div class="result-header">
15 <span style="float: left;">
16 <a class="title" href="<% $item->link %>"><% $item->title %></a>
17 <span class="feed">in <% $item->in_feed->title %></span>
18 </span>
19 <span class="skip-to">
20 <% Jifty->web->link(
21 label => '[X]',
22 onclick => {
23 args => { item_id => $item->id },
24 # confirm => 'Delete this item from local cache?',
25 element => '#r' . $pos,
26 beforeclick => "Element.hide('c${pos}');",
27 append => '/fragments/delete',
28 },
29 ) %>&nbsp;
30 % if ( $prev ) {
31 <a href="#r<% $prev %>" onclick="new Effect.ScrollTo('i<% $prev %>'); return false;">&lt;&lt;</a>
32 % } else {
33 &lt;&lt;
34 % }
35 &nbsp;
36 % if ( $next ) {
37 <a href="#r<% $next %>" onclick="new Effect.ScrollTo('i<% $next %>'); return false;">&gt;&gt;</a>
38 % } else {
39 &gt;&gt;
40 % }
41 </span>
42 </div><!-- result-header -->
43
44 <div class="content" id="c<% $pos %>">
45 <% $item->content | n %>
46 </div><!-- content -->
47
48 <div class="result-footer">
49 % foreach my $f ( qw/category author issued modified/ ) {
50 % if ( $item->$f ) {
51 <span class="<% $f %>"><% $item->$f %></span>
52 % }
53 % }
54 </div><!-- result-footer -->
55
56 </div><!-- result -->

  ViewVC Help
Powered by ViewVC 1.1.26