Minor fix to 'last changed' field, simplify template and logic

This commit is contained in:
Leigh Morresi
2021-02-04 13:15:39 +01:00
parent b9f73a6240
commit d07cf53a07
3 changed files with 8 additions and 5 deletions

View File

@@ -53,7 +53,12 @@
{% endif %}
</td>
<td>{{watch|format_last_checked_time}}</td>
<td>{{watch.last_changed|format_timestamp_timeago}}</td>
<td>{% if watch.history|length >= 2 and watch.last_changed %}
{{watch.last_changed|format_timestamp_timeago}}
{% else %}
Not yet
{% endif %}
</td>
<td><a href="/api/checknow?uuid={{ watch.uuid}}{% if request.args.get('tag') %}&tag={{request.args.get('tag')}}{% endif %}" class="pure-button button-small pure-button-primary">Recheck</a>
<a href="/edit?uuid={{ watch.uuid}}" class="pure-button button-small pure-button-primary">Edit</a>
{% if watch.history|length >= 2 %}