From b7c9dcf7c993c6163c649bbd0e10cc6e5784d327 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 19 Aug 2020 16:41:36 +0200 Subject: [PATCH] Rework the UI/UX around orphaning/adopting orphaned packages Signed-off-by: Pierre-Yves Chibon --- .../srcfpo/templates/repo_master_sidebar.html | 124 ++++++++++-------- 1 file changed, 69 insertions(+), 55 deletions(-) diff --git a/pagure/themes/srcfpo/templates/repo_master_sidebar.html b/pagure/themes/srcfpo/templates/repo_master_sidebar.html index 72429c0eb..adc1dbfe4 100644 --- a/pagure/themes/srcfpo/templates/repo_master_sidebar.html +++ b/pagure/themes/srcfpo/templates/repo_master_sidebar.html @@ -121,64 +121,36 @@
-
Orphaned:
-
- {% if g.authenticated and repo.user.user == g.fas_user.username %} -
- {% else %} -
- {% endif %} -
- - -
- - {% if repo.orphan_reason %} - - {% else %} - - {% endif %} -
+ {% if repo.user.user == "orphan" %} +

Orphaned for: {{ repo.orphan_reason.reason }} + {% if repo.orphan_reason.reason_info %} + -- {{ repo.orphan_reason.reason_info }} + {% endif %} +

+ + + + Take + + {% else %} + + {% if g.authenticated %} - + {% endif %} + {% endif %}
@@ -252,6 +224,46 @@
+ +