Use appropriate prototype depending on perl version in test.
[catagits/Gitalist.git] / root / _header_feeds.tt2
index 5982b16..1fbcfaa 100644 (file)
@@ -1,28 +1,28 @@
-  [% IF Project %]
+  [% IF Repository %]
   <!-- XXX Missing the no-merges links -->
   <link
     rel="alternate"
-    title="[% Project.name %] - [% title %] Atom feed"
-    href="[% c.uri_for('atom') %]"
+    title="[% Repository.name %] - [% title %] Atom feed"
+    href="[% c.uri_for_action('/repository/atom', [Repository.name]) %]"
     type="application/atom+xml"
   >
   <link
     rel="alternate"
-    title="[% Project.name %] - [% title %] RSS feed"
-    href="[% c.uri_for('rss') %]"
+    title="[% Repository.name %] - [% title %] RSS feed"
+    href="[% c.uri_for_action('/repository/rss', [Repository.name]) %]"
     type="application/rss+xml"
   >
   [% ELSE %]
   <link
     rel="alternate"
-    title="[% c.config.sitename %] Git projects list"
-    href="[% c.uri_for('project_index') %]"
+    title="[% c.config.sitename %] Git repositories list"
+    href="[% c.uri_for('repository_index') %]"
     type="text/plain; charset=utf-8"
-  > 
+  >
   <link
     rel="alternate"
-    title="[% c.config.sitename %] Git projects feeds"
-    href="[% c.uri_for('opml') %]"
+    title="[% c.config.sitename %] Git repositories feeds"
+    href="[% c.uri_for_action('/opml/opml') %]"
     type="text/x-opml"
   >
   [% END %]