Handle titles and links

This commit is contained in:
Leigh Morresi
2021-01-27 19:54:17 +01:00
parent 57fd3a7c3c
commit a4f1f6ab69
6 changed files with 25 additions and 15 deletions

View File

@@ -20,7 +20,7 @@
<thead>
<tr>
<th>#</th>
<th>URL</th>
<th></th>
<th>Last Checked</th>
<th>Last Changed</th>
<th></th>
@@ -32,7 +32,8 @@
{% for watch in watches %}
<tr id="{{ watch.uuid }}" class="{{ loop.cycle('pure-table-odd', 'pure-table-even') }} {% if watch.last_error is defined and watch.last_error != False %}error{% endif %}">
<td>{{ loop.index }}</td>
<td>{{ watch.url }}</td>
<td>{% if watch.title is not none %}{{ watch.title }}{% else %}{{ watch.url }}{% endif %}<a class="external" target=_blank href="{{ watch.url }}"></a>
</td>
<td>{{watch|format_last_checked_time}}
{% if watch.last_error is defined and watch.last_error != False %} !! {% endif %}
</td>