3 has_branch = c.req.param('h').match('^(refs/heads/.*)') || c.req.param('hb').match('^(refs/heads/.*)');
4 branch = has_branch.0 || '';
6 feed_fn = c.req.param('f');
8 title = 'history of ' _ c.req.param('filename');
9 title = title _ (branch ? ' on ' _ branch : '');
11 title = title _ (branch ? ' of ' _ branch : '');
14 feed_args = { h = branch || c.req.param('h') || c.req.param('hb') || 'HEAD' };
15 IF feed_fn; feed_args.f = feed_fn; END;
19 title="[% feed_title %]"
20 href="[% c.uri_for_action('/repository/rss', [Repository.name]) %]">RSS</a>
23 title="[% feed_title %]"
24 href="[% c.uri_for_action('/repository/atom', [Repository.name]) %]">Atom</a>
28 href="[% c.uri_for_action('/opml/opml') %]">OPML</a>
31 href="[% c.uri_for('/project_index') %]">TXT</a>