diff contrib/sawmill/web/templates/details.html @ 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 e7114ac643c3
children e075ce66e085
line wrap: on
line diff
--- a/contrib/sawmill/web/templates/details.html	Sun Sep 26 08:53:16 2010 +0000
+++ b/contrib/sawmill/web/templates/details.html	Wed Sep 29 19:25:52 2010 +0000
@@ -86,21 +86,17 @@
     curr_date = date_from_datetime(track_item.build_start)
     if curr_date != last_date:
         last_date = curr_date
-%>
-<tr class="date_row"><td colspan="7"><%= pretty_time(last_date, "%Y-%m-%d") %> (times in UTC)</td></tr>
-<%
+%><tr class="date_row"><td colspan="7"><%= pretty_time(last_date, "%Y-%m-%d") %> (times in UTC)</td></tr><%
     # date changed
 %>
 <tr class="<%= STATUS2CLASS.get(track_item.build_status, 'error') %>">
-<td><%= STATUS2MSG.get(track_item.build_status, 'error') %></td>
-<td style="font-weight:bold;"><%= nn(track_item.track) %></td>
+<td><a name=<%= quoteattr(track_item.build_label) %>><%= STATUS2MSG.get(track_item.build_status, 'error') %></a></td>
+<td><b><%= nn(track_item.track) %></b></td>
 <td align="right"><%
     tags = track_item.build_tags
     if tags:
         # a tag
-%>
-<a href=<%= create_tags_link(tags) %>><strong><%= nn(track_item.revision) %></strong></a>
-<%
+%><a href=<%= create_tags_link(tags) %>><strong><%= nn(track_item.revision) %></strong></a><%
     else:
         # not a tag
 %><%= nn(track_item.revision) %><%
@@ -109,17 +105,13 @@
 <td align="right"><%= pretty_time(track_item.build_start) %></td>
 <td align="right"><%= pretty_time(track_item.build_stop) %></td>
 <td align="right"><%= pretty_timedelta(track_item.stop, track_item.build_start) %></td>
-<td>
-<%
+<td><%
     for log_desc, log_path in track_item.build_logs:
         # for all logs
-%>
-[<a href=<%= quoteattr("%s/%s" % (base_dir, log_path)) %>><%= nn(log_desc) %></a>]
+%>[<a href=<%= quoteattr("%s/%s" % (base_dir, log_path)) %>><%= nn(log_desc) %></a>]
 <%
     # for all logs
-%></td>
-</tr>
-<%
+%></td></tr><%
 # for all track itemes
 %>
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)