Verified Commit a629098b authored by Kevin Morris's avatar Kevin Morris
Browse files

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's avatarKevin Morris <kevr@0cost.org>
parent 7fed5742
......@@ -46,9 +46,13 @@
<td class="wrap">{{ result.Comments }}</td>
<td>
{# Filed by #}
<a href="/account/{{ result.User.Username }}">
{{ result.User.Username }}
</a>
{# 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 }}">
{{ result.User.Username }}
</a>
{% endif %}
</td>
{% set idle_time = config_getint("options", "request_idle_time") %}
{% set time_delta = (utcnow - result.RequestTS) | int %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment