]> git.draconx.ca Git - homepage.git/blobdiff - layouts/default.xml
Add links from generated pages to source code on gitweb.
[homepage.git] / layouts / default.xml
index 47470e0c84c45f12b4ee9c82c352f4c3f434d84e..901b0c36693e48391ddaa272f3efd9067faf6a91 100644 (file)
 -->
 <document>
   <title><%= @item[:title] %></title>
+  <source>
+    <file><%= item_source(@item) %></file>
+    <revision><%= item.fetch(:gitrev) %></revision>
+    <compiletime><%=
+      Time.now.gmtime.strftime "%Y-%m-%d %H:%M UTC"
+    %></compiletime>
+  </source>
   <html xmlns="http://www.w3.org/1999/xhtml">
     <h1><%= @item.fetch(:header, @item[:title]) %></h1>
     <%= yield() %>