mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: conditional display on Request's 'Filed by' field
Since we support requests which have no associated user, we must support the case where we are displaying such a request. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
7fed5742b8
commit
a629098b92
1 changed files with 7 additions and 3 deletions
|
@ -46,9 +46,13 @@
|
||||||
<td class="wrap">{{ result.Comments }}</td>
|
<td class="wrap">{{ result.Comments }}</td>
|
||||||
<td>
|
<td>
|
||||||
{# Filed by #}
|
{# Filed by #}
|
||||||
|
{# If the record has an associated User, display a link to that user. #}
|
||||||
|
{# Otherwise, display nothing (an empty column). #}
|
||||||
|
{% if result.User %}
|
||||||
<a href="/account/{{ result.User.Username }}">
|
<a href="/account/{{ result.User.Username }}">
|
||||||
{{ result.User.Username }}
|
{{ result.User.Username }}
|
||||||
</a>
|
</a>
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
{% set idle_time = config_getint("options", "request_idle_time") %}
|
{% set idle_time = config_getint("options", "request_idle_time") %}
|
||||||
{% set time_delta = (utcnow - result.RequestTS) | int %}
|
{% set time_delta = (utcnow - result.RequestTS) | int %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue