Skip to content

Commit

Permalink
improve time display on user page
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 20, 2024
1 parent 2022028 commit 8f5fb70
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions server/templates/list.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,23 @@
{% endif %}
</div>

{% if patch.state %}
<small style="text-wrap: nowrap;"
title="{{ patch.updated_at }}">
reviewed at {{ patch.updated_at | rel_time }}
</small>
{% else %}
{% if user_id is defined %}
<small style="text-wrap: nowrap;"
title="{{ patch.created_at }}">
created at {{ patch.created_at | rel_time }}
</small>
{% else %}
{% if patch.state %}
<small style="text-wrap: nowrap;"
title="{{ patch.updated_at }}">
reviewed at {{ patch.updated_at | rel_time }}
</small>
{% else %}
<small style="text-wrap: nowrap;"
title="{{ patch.created_at }}">
created at {{ patch.created_at | rel_time }}
</small>
{% endif %}
{% endif %}
</div>

Expand Down

0 comments on commit 8f5fb70

Please sign in to comment.