From: Michael Tremer Date: Sat, 25 Jun 2022 14:10:06 +0000 (+0000) Subject: repos: Adjust breadcrumbs for user repositories X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=646fa5d8e30bc986dd8211803cd8afe53c02c7d4;p=pbs.git repos: Adjust breadcrumbs for user repositories Signed-off-by: Michael Tremer --- diff --git a/src/templates/repos/builds.html b/src/templates/repos/builds.html index fc55dce6..9f06fde2 100644 --- a/src/templates/repos/builds.html +++ b/src/templates/repos/builds.html @@ -8,20 +8,26 @@
  • {{ _("Home") }}
  • -
  • - {{ _("Distributions") }} -
  • -
  • - {{ distro }} -
  • + {% if repo.owner %} +
  • + {{ _("Users") }} +
  • +
  • + {{ repo.owner }} +
  • + {% else %} +
  • + {{ _("Distributions") }} +
  • +
  • + {{ distro }} +
  • + {% end %}
  • {{ _("Repositories") }}
  • - {{ repo }} -
  • -
  • - {{ _("Current") }}: {{ _("Builds") }} + {{ _("Current") }}: {{ repo }}
  • diff --git a/src/templates/repos/show.html b/src/templates/repos/show.html index 1110742f..312e462b 100644 --- a/src/templates/repos/show.html +++ b/src/templates/repos/show.html @@ -8,12 +8,21 @@
  • {{ _("Home") }}
  • -
  • - {{ _("Distributions") }} -
  • -
  • - {{ distro }} -
  • + {% if repo.owner %} +
  • + {{ _("Users") }} +
  • +
  • + {{ repo.owner }} +
  • + {% else %} +
  • + {{ _("Distributions") }} +
  • +
  • + {{ distro }} +
  • + {% end %}
  • {{ _("Repositories") }}
  • @@ -33,7 +42,7 @@ {% end %} - + {{ _("Download Configuration") }}