[#7] Minor tweaks in job pages

This commit is contained in:
amercader 2013-02-25 16:15:37 +00:00
parent c7bb897cdd
commit d1b71308af
2 changed files with 11 additions and 4 deletions

View File

@ -13,8 +13,6 @@ Example:
#}
<p>GUID: <code>{{ job.id }}</code></p>
{% set stats = job.stats %}
<p class="harvest-errors">
@ -45,6 +43,14 @@ Example:
<col width="15">
<col width="85">
</colgroup>
<tr>
<th>{{ _('Id') }}</th>
<td>{{ job.id }}</td>
</tr>
<tr>
<th>{{ _('Created') }}</th>
<td>{{ h.render_datetime(job.created, with_hours=True) }}</td>
</tr>
<tr>
<th>{{ _('Started') }}</th>
<td>{{ h.render_datetime(job.gather_started, with_hours=True) }}</td>

View File

@ -12,6 +12,7 @@
<li class="disabled"><a>{{ _('Show me:') }}</a></li>
<li{% if c.filter_nav == 'Finished' %} class="active"{% endif %}>{{ h.nav_named_link(_('Finished jobs'), 'harvest_job_list', source=source.name) }}</li>
<li{% if c.filter_nav == 'New' %} class="active"{% endif %}>{{ h.nav_named_link(_('New jobs'), 'harvest_job_list', source=source.name, status='New') }}</li>
<li{% if c.filter_nav == 'Running' %} class="active"{% endif %}>{{ h.nav_named_link(_('Running jobs'), 'harvest_job_list', source=source.name, status='Running') }}</li>
</ul>
<h1>{{ _('Harvest Jobs') }}</h1>
</header>
@ -31,7 +32,7 @@
{% endif %}
<h4>{{ _('Job: ') }} {{ job.id }}</h4>
<p>
{{ _('Created:') }} {{ h.render_datetime(job.gather_started, with_hours=True) or _('Not yet') }}
{{ _('Started:') }} {{ h.render_datetime(job.gather_started, with_hours=True) or _('Not yet') }}
&mdash;
{{ _('Finished:') }} {{ h.render_datetime(job.gather_finished, with_hours=True) or _('Not yet') }}
</p>
@ -55,4 +56,4 @@
</div>
{% endblock %}