diff contrib/sawmill/web/templates/header.inc @ 490:73a2e603a23b

sawmill: Prepared detail view for syndication: Added anchors for each build and added render rel link if RSS file exists next to treepkg.xml.
author Sascha Teichmann <teichmann@intevation.de>
date Wed, 29 Sep 2010 19:25:52 +0000
parents f208b139190b
children
line wrap: on
line diff
--- a/contrib/sawmill/web/templates/header.inc	Sun Sep 26 08:53:16 2010 +0000
+++ b/contrib/sawmill/web/templates/header.inc	Wed Sep 29 19:25:52 2010 +0000
@@ -5,7 +5,13 @@
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link rel="icon" href="img/favicon.ico" type="image/x-icon">
-  <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen">
+  <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen"><%
+if 'syndicate' in locals():
+    # generate syndication link
+%>
+  <link rel="alternate" type="application/rss+xml" title=<%= quoteattr(syndicate[0]) %> href=<%= quoteattr(syndicate[1])%>><%
+# no syndication
+%>
   <title>S&auml;gewerk - <%= escape(page_title) %></title>
 </head>
 <body>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)