{% extends "layout.html" %}

{% block content %}

<h1>
  Builder <a href="{{ builder_link }}">{{ b.getBuilder().getName() }}</a> 
  build <a href="{{ build_link }}">#{{ b.getNumber() }}</a> 
  step <a href="">{{ s.getName() }}</a> 
</h1>

<div class="column">

{% if s.isFinished() %}
  <h2>Finished</h2>
  <p class="{{ result_css }} result">  
    {%- set text = s.getText() -%}
    {%- if text is string %}{{ text|e }}
    {%- else %}{{ text|join("<br/>") }}{% endif -%}
  </p>  
{% else %}
  <h2>Not Finished</h2>
  <p>ETA {{ s.getETA()|e }} seconds</p>
{% endif %}

{% set exp = s.getExpectations() %}
{% if exp %}
  <h2>Expectations</h2>
  <ul>
  {% for e in exp %}
    <li>{{ e[0]|e }}: current={{ e[1] }}, target={{ e[2] }}</li>
  {% endfor %}
  </ul>
{% endif %}

<h2>Timing</h2>
{% if start %}
  <table class="info">
    <tr class="alt"><td class="left">Start</td><td>{{ start }}</td></tr>
    <tr><td class="left">End</td><td>{{ end or "Not finished" }}</td></tr>
    <tr class="alt"><td class="left">Elapsed</td><td>{{ elapsed }}</td></tr>
  </table>
{% else %}
  <b>Not started</b>
{% endif %}
  
<h2>Logs</h2>
<ul>
{% for l in logs %}
  <li class="{{ loop.cycle('alt', '') }}">
  {% if l.has_contents %}
    <a href="{{ l.link|e }}">{{ l.name|e }}</a>
  {% else %}
    {{ l.name|e }}
  {% endif %}
  </li>
{% else %}
  <li class="alt">- No logs -</li> 
{% endfor %}
</ul>

</div>

{% endblock %}

Improve the presentation of our build steps.
Improve the presentation of our build steps.

We use links in our text descriptions.  This style is used in other templates. (e.g. the waterfall) for displaying the same values.

BUG=119738
TEST=Observe better looking <wf>/builders/<b>/builds/<n>/steps/<s>
Review URL: https://chromiumcodereview.appspot.com/9834087

git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@128970 0039d316-1c4b-4281-b951-d872f2087c98
