From 3e044d2c9fea7c197aa0476e2c9735320c112e03 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 16 Aug 2023 02:08:23 +0200 Subject: [PATCH] Use unique class for breadcrumb divider (#26524) Fix regression from https://github.com/go-gitea/gitea/pull/25539: https://github.com/go-gitea/gitea/pull/26519#issuecomment-1678825200. Before: Screenshot 2023-08-15 at 15 46 12 After: Screenshot 2023-08-15 at 15 46 19 Screenshot 2023-08-15 at 15 56 11 --- templates/repo/editor/cherry_pick.tmpl | 2 +- templates/repo/editor/edit.tmpl | 2 +- templates/repo/editor/patch.tmpl | 2 +- templates/repo/editor/upload.tmpl | 2 +- templates/repo/home.tmpl | 2 +- web_src/css/modules/breadcrumb.css | 11 ++++++++--- web_src/js/features/repo-editor.js | 4 ++-- 7 files changed, 15 insertions(+), 10 deletions(-) diff --git a/templates/repo/editor/cherry_pick.tmpl b/templates/repo/editor/cherry_pick.tmpl index 828addb75..59948f283 100644 --- a/templates/repo/editor/cherry_pick.tmpl +++ b/templates/repo/editor/cherry_pick.tmpl @@ -18,7 +18,7 @@ {{.locale.Tr "repo.editor.cherry_pick" $shalink | Str2html}} {{end}} {{.Repository.FullName}} -
:
+ {{.BranchName}} {{.locale.Tr "repo.editor.or"}} {{.locale.Tr "repo.editor.cancel_lower"}} diff --git a/templates/repo/editor/edit.tmpl b/templates/repo/editor/edit.tmpl index 988b11911..3b5a63f3a 100644 --- a/templates/repo/editor/edit.tmpl +++ b/templates/repo/editor/edit.tmpl @@ -13,7 +13,7 @@ {{$n := len .TreeNames}} {{$l := Eval $n "-" 1}} {{range $i, $v := .TreeNames}} -
/
+ {{if eq $i $l}} {{svg "octicon-info"}} diff --git a/templates/repo/editor/patch.tmpl b/templates/repo/editor/patch.tmpl index 581a80e82..1f948fbb1 100644 --- a/templates/repo/editor/patch.tmpl +++ b/templates/repo/editor/patch.tmpl @@ -11,7 +11,7 @@