From: Michael Tremer Date: Tue, 1 Aug 2023 17:17:58 +0000 (+0000) Subject: users: Show controls to create repos when none exist X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be4d0c06bedba166f2c61bc2e25b376be528ac7f;p=pbs.git users: Show controls to create repos when none exist Signed-off-by: Michael Tremer --- diff --git a/src/templates/users/show.html b/src/templates/users/show.html index d065d483..d9e25796 100644 --- a/src/templates/users/show.html +++ b/src/templates/users/show.html @@ -83,14 +83,14 @@ {% end %} - + {# Repositories #} - {% if user.repos %} -
-
-

{{ _("Repositories") }}

+
+
+

{{ _("Repositories") }}

+ {% if user.repos %} {% for distro in sorted(user.repos) %}
{{ distro }}
@@ -98,15 +98,19 @@ {% module ReposList(user.repos[distro]) %}
{% end %} + {% else %} +
+ {{ _("No Repositories, Yet") }} +
+ {% end %} - {% if user.has_perm(current_user) %} - - {% end %} -
-
- {% end %} + {% if user.has_perm(current_user) %} + + {% end %} +
+
{% end block %}