comparison contrib/sawmill/web/templates/details.html @ 484:2e947f508553

sawmill: Improved HTML 4.01 transitional compat a bit. Reduce text output of inner loop to reduce overall output size of detail page.
author Sascha Teichmann <teichmann@intevation.de>
date Sat, 18 Sep 2010 10:15:45 +0000
parents 28aa6ac933fb
children a55a521b7a31
comparison
equal deleted inserted replaced
483:28aa6ac933fb 484:2e947f508553
94 # date changed 94 # date changed
95 %> 95 %>
96 <tr class="<%= STATUS2CLASS.get(track_item.build_status, 'error') %>"> 96 <tr class="<%= STATUS2CLASS.get(track_item.build_status, 'error') %>">
97 <td><%= STATUS2MSG.get(track_item.build_status, 'error') %></td> 97 <td><%= STATUS2MSG.get(track_item.build_status, 'error') %></td>
98 <td style="font-weight:bold;"><%= nn(track_item.track) %></td> 98 <td style="font-weight:bold;"><%= nn(track_item.track) %></td>
99 <td align="right"> 99 <td align="right"><%
100 <%
101 tags = track_item.build_tags 100 tags = track_item.build_tags
102 if tags: 101 if tags:
103 # a tag 102 # a tag
104 %> 103 %>
105 <a href=<%= create_tags_link(tags) %>><strong><%= nn(track_item.revision) %></strong></a> 104 <a href=<%= create_tags_link(tags) %>><strong><%= nn(track_item.revision) %></strong></a>
106 <% 105 <%
107 else: 106 else:
108 # not a tag 107 # not a tag
109 %> 108 %><%= nn(track_item.revision) %><%
110 <%= nn(track_item.revision) %>
111 <%
112 # end if tags 109 # end if tags
113 %> 110 %></td>
114 </td>
115 <td align="right"><%= pretty_time(track_item.build_start) %></td> 111 <td align="right"><%= pretty_time(track_item.build_start) %></td>
116 <td align="right"><%= pretty_time(track_item.build_stop) %></td> 112 <td align="right"><%= pretty_time(track_item.build_stop) %></td>
117 <td align="right"><%= pretty_timedelta(track_item.stop, track_item.build_start) %></td> 113 <td align="right"><%= pretty_timedelta(track_item.stop, track_item.build_start) %></td>
118 <td> 114 <td>
119 <% 115 <%
121 # for all logs 117 # for all logs
122 %> 118 %>
123 [<a href=<%= quoteattr("%s/%s" % (base_dir, log_path)) %>><%= nn(log_desc) %></a>] 119 [<a href=<%= quoteattr("%s/%s" % (base_dir, log_path)) %>><%= nn(log_desc) %></a>]
124 <% 120 <%
125 # for all logs 121 # for all logs
126 %> 122 %></td>
127 </td>
128 </tr> 123 </tr>
129 <% 124 <%
130 # for all track itemes 125 # for all track itemes
131 %> 126 %>
132 127
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)