Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 {% extends "layout.html" %} | 1 {% extends "layout.html" %} |
| 2 {% import 'forms.html' as forms %} | 2 {% import 'forms.html' as forms %} |
| 3 {% from "change_macros.html" import change with context %} | 3 {% from "change_macros.html" import change with context %} |
| 4 | 4 |
| 5 {% block content %} | 5 {% block content %} |
| 6 | 6 |
| 7 <h1> | 7 <h1> |
| 8 Builder <a href="{{ path_to_builder }}">{{ b.getBuilder().getName() }}</a> | 8 Builder <a href="{{ path_to_builder }}">{{ b.getBuilder().getName() }}</a> |
| 9 Build #{{ b.getNumber() }} | 9 Build #{{ b.getNumber() }} |
| 10 <div class="bbp_placeholder" | 10 <div class="bbp_placeholder" |
| 11 id="{{ b.getProperty('mastername') }}:{{ b.getBuilder().getName() }}:{{ | 11 id="{{ b.getProperty('mastername') }}:{{ b.getBuilder().getName() }}:{{ |
| 12 b.getNumber() }}"> | 12 b.getNumber() }}"> |
| 13 </div> | 13 </div> |
| 14 </h1> | 14 </h1> |
| 15 | 15 |
| 16 <div class="column"> | 16 <div class="column"> |
| 17 | 17 |
| 18 {% if not b.isFinished() %} | 18 {% if not b.isFinished() %} |
| 19 <h2>Build In Progress:</h2> | 19 <h2>Build In Progress:</h2> |
| 20 | 20 |
| 21 {% if when_time %} | 21 {% if when_time %} |
| 22 <p>ETA: {{ when_time }} [{{ when }}]</p> | 22 <p>ETA: {{ when_time }} [{{ when }}]</p> |
| 23 {% endif %} | 23 {% endif %} |
| 24 | 24 |
| 25 {{ current_step }} | 25 {{ current_step }} |
| 26 | 26 |
| 27 {% if authz.advertiseAction('stopBuild') %} | 27 {% if authz.advertiseAction('stopBuild') %} |
| 28 <h2>Stop Build</h2> | 28 <h2>Stop Build</h2> |
| 29 {{ forms.stop_build(build_url+"/stop", authz, on_all=False, short=False, lab el='This Build') }} | 29 {{ forms.stop_build(build_url+"/stop", authz, on_all=False, short=False, lab el='This Build') }} |
| 30 {% endif %} | 30 {% endif %} |
| 31 {% else %} | 31 {% else %} |
| 32 <h2>Results:</h2> | 32 <h2>Results:</h2> |
| 33 | 33 |
| 34 <p class="{{ result_css }} result"> | 34 <p class="{{ result_css }} result"> |
| 35 {{ b.getText()|join(' ')|capitalize }} | 35 {{ b.getText()|join(' ')|capitalize }} |
| 36 </p> | 36 </p> |
| 37 | 37 |
| 38 {% if b.getTestResults() %} | 38 {% if b.getTestResults() %} |
| 39 <h3><a href="{{ tests_link }}"/></h3> | 39 <h3><a href="{{ tests_link }}"/></h3> |
| 40 {% endif %} | 40 {% endif %} |
| 41 {% endif %} | 41 {% endif %} |
| 42 | 42 |
| 43 <h2>SourceStamp:</h2> | 43 <h2>SourceStamp:</h2> |
| 44 | 44 |
| 45 <table class="info" width="100%"> | 45 <table class="info" width="100%"> |
| 46 {% set ss_class = cycler('alt','') %} | 46 {% set ss_class = cycler('alt','') %} |
| 47 | 47 |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 76 {% if most_recent_rev_build %} | 76 {% if most_recent_rev_build %} |
| 77 <tr class="{{ ss_class.next() }}"><td class="left" colspan="2">Build of most r ecent revision</td></tr> | 77 <tr class="{{ ss_class.next() }}"><td class="left" colspan="2">Build of most r ecent revision</td></tr> |
| 78 {% endif %} | 78 {% endif %} |
| 79 | 79 |
| 80 </table> | 80 </table> |
| 81 | 81 |
| 82 {# | 82 {# |
| 83 # TODO: turn this into a table, or some other sort of definition-list | 83 # TODO: turn this into a table, or some other sort of definition-list |
| 84 # that doesn't take up quite so much vertical space | 84 # that doesn't take up quite so much vertical space |
| 85 #} | 85 #} |
| 86 | 86 |
| 87 <h2>BuildSlave:</h2> | 87 <h2>BuildSlave:</h2> |
| 88 | 88 |
| 89 {% if slave_url %} | 89 {% if slave_url %} |
| 90 <a href="{{ slave_url|e }}">{{ b.getSlavename()|e }}</a> | 90 <a href="{{ slave_url|e }}">{{ b.getSlavename()|e }}</a> |
| 91 {% else %} | 91 {% else %} |
| 92 {{ b.getSlavename()|e }} | 92 {{ b.getSlavename()|e }} |
| 93 {% endif %} | 93 {% endif %} |
| 94 | 94 |
| 95 <h2>Reason:</h2> | 95 <h2>Reason:</h2> |
| 96 <p> | 96 <p> |
| 97 {{ b.getReason()|e }} | 97 {{ b.getReason()|e }} |
| 98 </p> | 98 </p> |
| 99 | 99 |
| 100 <h2>Steps and Logfiles:</h2> | 100 <h2>Steps and Logfiles:</h2> |
| 101 | 101 |
| 102 {# | 102 {# |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 {% endfor %} | 164 {% endfor %} |
| 165 | 165 |
| 166 </div> | 166 </div> |
| 167 <div class="column"> | 167 <div class="column"> |
| 168 | 168 |
| 169 <h2>Build Properties:</h2> | 169 <h2>Build Properties:</h2> |
| 170 | 170 |
| 171 <table class="info BuildProperties" width="100%"> | 171 <table class="info BuildProperties" width="100%"> |
| 172 <tr><th>Name</th><th>Value</th><th>Source</th></tr> | 172 <tr><th>Name</th><th>Value</th><th>Source</th></tr> |
| 173 | 173 |
| 174 {% for p in properties %}{% if p.name == 'rietveld' %} {% set rietveld_url = p.v alue %}{% endif %} | |
| 175 {% else %}{% set rietveld_url = '' %}{% endfor %} | |
|
Sergiy Byelozyorov
2015/11/26 15:10:34
please structure it with indents, e.g.
{% for p i
tandrii(chromium)
2015/11/26 15:18:37
Done, but I don't see a bug.
Sergiy Byelozyorov
2015/11/27 12:17:13
else for for? afaik, this only works in python
| |
| 176 | |
| 174 {% for p in properties %} | 177 {% for p in properties %} |
| 175 <tr class="{{ loop.cycle('alt', '') }}"> | 178 <tr class="{{ loop.cycle('alt', '') }}"> |
| 176 <td class="left">{{ p.name|e }}</td> | 179 <td class="left">{{ p.name|e }}</td> |
| 177 <td class="middle"><abbr title=" | 180 <td class="middle"><abbr title=" |
| 178 {% if p.short_value %} | 181 {% if p.short_value %} |
| 179 {{ p.short_value|e }} .. [property value too long] | 182 {{ p.short_value|e }} .. [property value too long] |
| 180 {% else %} | 183 {% else %} |
| 181 {{ p.value|e }} | 184 {{ p.value|e }} |
| 182 {% endif %}"> | 185 {% endif %}"> |
| 183 {% if p.short_value %} | 186 {% if p.short_value %} |
| 184 {{ p.short_value|e }} .. [property value too long] | 187 {{ p.short_value|e }} .. [property value too long] |
| 188 {% elif p.name == 'issue' and rietveld_url %} | |
| 189 <a style="color: red" href="{{ (rietveld_url + '/' + p.value)|e }} ">{{ p. value|e }}</a> | |
| 185 {% else %} | 190 {% else %} |
| 186 {{ p.value|e }} | 191 {{ p.value|e }} |
| 187 {% endif %} | 192 {% endif %} |
| 188 </abbr></td> | 193 </abbr></td> |
| 189 <td>{{ p.source|e }}</td> | 194 <td>{{ p.source|e }}</td> |
| 190 </tr> | 195 </tr> |
| 191 {% endfor %} | 196 {% endfor %} |
| 192 | 197 |
| 193 </table> | 198 </table> |
| 194 | 199 |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 215 </table> | 220 </table> |
| 216 | 221 |
| 217 {% if authz.advertiseAction('forceBuild') %} | 222 {% if authz.advertiseAction('forceBuild') %} |
| 218 <h3>Resubmit Build:</h3> | 223 <h3>Resubmit Build:</h3> |
| 219 {{ forms.rebuild_build(build_url+"/rebuild", authz, exactly, ss) }} | 224 {{ forms.rebuild_build(build_url+"/rebuild", authz, exactly, ss) }} |
| 220 {% endif %} | 225 {% endif %} |
| 221 | 226 |
| 222 </div> | 227 </div> |
| 223 | 228 |
| 224 <br style="clear:both"/> | 229 <br style="clear:both"/> |
| 225 | 230 |
| 226 {% if ss.changes %} | 231 {% if ss.changes %} |
| 227 <div class="column"> | 232 <div class="column"> |
| 228 <h2>All Changes:</h2> | 233 <h2>All Changes:</h2> |
| 229 <ol> | 234 <ol> |
| 230 {% for c in ss.changes %} | 235 {% for c in ss.changes %} |
| 231 <li><h3>Change #{{ c.number }}</h3> | 236 <li><h3>Change #{{ c.number }}</h3> |
| 232 {{ change(c.asDict()) }} | 237 {{ change(c.asDict()) }} |
| 233 </li> | 238 </li> |
| 234 {% else %} | 239 {% else %} |
| 235 <li>no changes</li> | 240 <li>no changes</li> |
| 236 {% endfor %} | 241 {% endfor %} |
| 237 </ol> | 242 </ol> |
| 238 </div> | 243 </div> |
| 239 {% endif %} | 244 {% endif %} |
| 240 | 245 |
| 241 {% endblock %} | 246 {% endblock %} |
| OLD | NEW |