From 61f7ddc6d8a299f9f3915869fa50afbc645921de Mon Sep 17 00:00:00 2001 From: "Daniel M. Capella" Date: Sat, 21 Jun 2025 17:57:20 -0400 Subject: [PATCH 1/2] signoffs: remove superfluous conditional The page is only accessible if you're logged in. --- templates/packages/signoffs.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html index 3aa8fd50..278848aa 100644 --- a/templates/packages/signoffs.html +++ b/templates/packages/signoffs.html @@ -26,10 +26,8 @@

Filter Displayed Signoffs

{% endfor %} - {% if user.is_authenticated %}
- {% endif %}
From e80f3a6b00ad1386a7c80bfe229f590e1afa7fa4 Mon Sep 17 00:00:00 2001 From: "Daniel M. Capella" Date: Thu, 10 Jul 2025 18:11:09 -0400 Subject: [PATCH 2/2] todolists: include last_modified in template Closes https://github.com/archlinux/archweb/issues/551 --- templates/todolists/view.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/todolists/view.html b/templates/todolists/view.html index 5f57966b..5b08ab47 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -2,6 +2,8 @@ {% load static %} {% load package_extras %} {% load todolists %} +{% load tz %} +{% load humanize %} {% block title %}Arch Linux - Todo: {{ list.name }}{% endblock %} @@ -103,7 +105,15 @@

Filter Todo List Packages

{{ pkg.get_status_display }} {% endif %} - {{ pkg.user|default:"" }} + + {% if pkg.user %} + {% if user.is_authenticated %} + {{ pkg.user }} ({{ pkg.last_modified|naturaltime }}) + {% else %} + {{ pkg.user }} ({{ pkg.last_modified|naturaltime }}) + {% endif %} + {% endif %} + {% endfor %}