comparison 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
comparison
equal deleted inserted replaced
489:e7114ac643c3 490:73a2e603a23b
84 for track_item in track_items: 84 for track_item in track_items:
85 # for all track items 85 # for all track items
86 curr_date = date_from_datetime(track_item.build_start) 86 curr_date = date_from_datetime(track_item.build_start)
87 if curr_date != last_date: 87 if curr_date != last_date:
88 last_date = curr_date 88 last_date = curr_date
89 %> 89 %><tr class="date_row"><td colspan="7"><%= pretty_time(last_date, "%Y-%m-%d") %> (times in UTC)</td></tr><%
90 <tr class="date_row"><td colspan="7"><%= pretty_time(last_date, "%Y-%m-%d") %> (times in UTC)</td></tr>
91 <%
92 # date changed 90 # date changed
93 %> 91 %>
94 <tr class="<%= STATUS2CLASS.get(track_item.build_status, 'error') %>"> 92 <tr class="<%= STATUS2CLASS.get(track_item.build_status, 'error') %>">
95 <td><%= STATUS2MSG.get(track_item.build_status, 'error') %></td> 93 <td><a name=<%= quoteattr(track_item.build_label) %>><%= STATUS2MSG.get(track_item.build_status, 'error') %></a></td>
96 <td style="font-weight:bold;"><%= nn(track_item.track) %></td> 94 <td><b><%= nn(track_item.track) %></b></td>
97 <td align="right"><% 95 <td align="right"><%
98 tags = track_item.build_tags 96 tags = track_item.build_tags
99 if tags: 97 if tags:
100 # a tag 98 # a tag
101 %> 99 %><a href=<%= create_tags_link(tags) %>><strong><%= nn(track_item.revision) %></strong></a><%
102 <a href=<%= create_tags_link(tags) %>><strong><%= nn(track_item.revision) %></strong></a>
103 <%
104 else: 100 else:
105 # not a tag 101 # not a tag
106 %><%= nn(track_item.revision) %><% 102 %><%= nn(track_item.revision) %><%
107 # end if tags 103 # end if tags
108 %></td> 104 %></td>
109 <td align="right"><%= pretty_time(track_item.build_start) %></td> 105 <td align="right"><%= pretty_time(track_item.build_start) %></td>
110 <td align="right"><%= pretty_time(track_item.build_stop) %></td> 106 <td align="right"><%= pretty_time(track_item.build_stop) %></td>
111 <td align="right"><%= pretty_timedelta(track_item.stop, track_item.build_start) %></td> 107 <td align="right"><%= pretty_timedelta(track_item.stop, track_item.build_start) %></td>
112 <td> 108 <td><%
113 <%
114 for log_desc, log_path in track_item.build_logs: 109 for log_desc, log_path in track_item.build_logs:
115 # for all logs 110 # for all logs
116 %> 111 %>[<a href=<%= quoteattr("%s/%s" % (base_dir, log_path)) %>><%= nn(log_desc) %></a>]
117 [<a href=<%= quoteattr("%s/%s" % (base_dir, log_path)) %>><%= nn(log_desc) %></a>]
118 <% 112 <%
119 # for all logs 113 # for all logs
120 %></td> 114 %></td></tr><%
121 </tr>
122 <%
123 # for all track itemes 115 # for all track itemes
124 %> 116 %>
125 117
126 </table> 118 </table>
127 <hr> 119 <hr>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)