/[refeed]/trunk/style/templates/one-feed.tpl
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 /trunk/style/templates/one-feed.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Wed Jul 5 00:27:49 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 4114 byte(s)
make working copy of trunk
1 {*----------------------------------------
2 $Id: one-feed.tpl,v 1.19 2006/02/23 19:47:50 fruminator Exp $
3 vim: ts=4 foldcolumn=4 foldmethod=marker
4
5 This file is part of Reblog: http://reblog.org
6 A derivative work of Feed On Feeds: http://feedonfeeds.com
7
8 Distributed under the Gnu Public License, see LICENSE
9
10 Copyright ©2004 Michael Frumin, Michal Migurski
11 mike@stamen.com, http://stamen.com
12 mfrumin@eyebeam.org, http://eyebeam.org
13
14 one-feed.tpl - a single feed, in a table row
15 ----------------------------------------*}
16
17 {if $feed->published}
18 {assign var="class_published" value="published"}
19 {else}
20 {assign var="class_published" value="unpublished"}
21 {/if}
22
23 <tr id="feed{$feed->getID()}" class="feed highlight-off {$class_published}">
24 <td class="age">
25 {$feed->usage.last_update|feed_age}
26 </td>
27 <td class="feed">
28 <a class="feed" title="new items" href="{view_link script="_ITEM_LIST" context="xhtml" search=$RB.args.search how="paged" what=$what feed=$feed->getID()}">{$feed->title|text_truncate}</a>
29
30 {*
31 {if $feed->link || $feed->url}
32 (<a href="{$feed->link|escape:"html"}">html</a>|<a href="{$feed->url|escape:"html"}">feed</a>)
33 {/if}
34 *}
35 </td>
36 <td class="unread">
37 {if $feed->usage.unread}
38 <a class="unread" title="new items" href="{view_link script="_ITEM_LIST" context="xhtml" search=$RB.args.search what=$what feed=$feed->getID()}">{$feed->usage.unread}</a>
39 {else}
40 0
41 {/if}
42 </td>
43 <td class="published">
44 {if $feed->usage.published}
45 <a class="unread" title="new items" href="{view_link script="_ITEM_LIST" context="xhtml" search=$args.search what="published" feed=$feed->getID()}">{$feed->usage.published} Published</a>
46 {else}
47 0 Published
48 {/if}
49 </td>
50 <td class="extra" id="feedTabs{$feed->getID()}">
51 <a class="off" href="#" onclick="populate_feed_body({$feed->getID()}, 'feedSubscriptionFormHTML', 'feedTab{$feed->getID()}Subscribe'); return false;" id="feedTab{$feed->getID()}Subscribe">Manage</a>
52 {if $GLOBALS.REBLOG_USER->canEditFeeds()}
53 <a class="off" href="#" onclick="populate_feed_body({$feed->getID()}, 'feedPublishFormHTML', 'feedTab{$feed->getID()}Publish'); return false;" id="feedTab{$feed->getID()}Publish">Publish</a>
54 <a class="off" href="#" onclick="populate_feed_body({$feed->getID()}, 'feedTagsFormHTML', 'feedTab{$feed->getID()}Tag'); return false;" id="feedTab{$feed->getID()}Tag">Tag</a>
55 {/if}
56 {extra_feed_tabs feed=$feed}
57 </td>
58 </tr>
59 <tr id="feedExtra{$feed->getID()}" class="feedextra highlight-off closed"><td colspan="5">&nbsp;</td></tr>
60
61 <script type="text/javascript" language="javascript1.2">
62 // <![CDATA[
63 var feed = new Refeed.Feed({$feed->getID()}, document.getElementById('feed{$feed->getID()}'), '{view_link script="_ITEM_LIST" search=$RB.args.search how="paged" what=$what feed=$feed->getID()}');
64 var feedExtra = document.getElementById('feedExtra{$feed->getID()}');
65
66 {literal}
67 feedExtra.feed = feed;
68 feedExtra.onclick = function(e) {
69 Refeed.App.selectThing(this.feed);
70 };
71
72 feed.assignFocusHandler(function(e) {
73 var node = this.getNode();
74 node.className = node.className.replace(/highlight-(on|off)\b/, 'highlight-on');
75
76 var extraNode = document.getElementById('feedExtra'+this.id);
77 if(extraNode) {
78 extraNode.className = extraNode.className.replace(/highlight-(on|off)\b/, 'highlight-on');
79 }
80 });
81
82 feed.assignBlurHandler(function(e) {
83 var node = this.getNode();
84 node.className = node.className.replace(/highlight-(on|off)\b/, 'highlight-off');
85
86 var extraNode = document.getElementById('feedExtra'+this.id);
87 if(extraNode) {
88 extraNode.className = extraNode.className.replace(/highlight-(on|off)\b/, 'highlight-off');
89 }
90 });
91 {/literal}
92
93 Refeed.App.addListThing(feed);
94 // ]]>
95 </script>

  ViewVC Help
Powered by ViewVC 1.1.26