From 72d999e759c21d417e3200876b96669f30cf619c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 2 Jan 2023 17:25:08 +0000 Subject: [PATCH] Remove login button from gone page when already logged in Fixes #414 --- app/templates/packages/gone.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/templates/packages/gone.html b/app/templates/packages/gone.html index 690e7a9c..e7fcf1dc 100644 --- a/app/templates/packages/gone.html +++ b/app/templates/packages/gone.html @@ -39,9 +39,13 @@ {% endif %}

{{ _("Please check back again later.") }} - {{ _("Or, if you're the author, log in to see more information.") }} -

-

- {{ _("Login") }} + {% if not current_user.is_authenticated %} + {{ _("Or, if you're the author, log in to see more information.") }} + {% endif %}

+ {% if not current_user.is_authenticated %} +

+ {{ _("Login") }} +

+ {% endif %} {% endblock %}