aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authormetiftikci <metiftikci@hotmail.com>2024-12-02 16:34:16 +0300
committerGitHub <noreply@github.com>2024-12-02 13:34:16 +0000
commit2824ae2128a8d6488b77c5a7534cc874da3c3165 (patch)
treec5f39186863efce97a2434edc8cefc71a4227cbc /templates/repo
parente3e32605a144076572ac55fb5053655ee045a0f9 (diff)
downloadgitea-2824ae2128a8d6488b77c5a7534cc874da3c3165.tar.gz
gitea-2824ae2128a8d6488b77c5a7534cc874da3c3165.zip
fix: show tag name on branch/tag selector if repo shown from tag ref (#32689)
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/commits.tmpl4
-rw-r--r--templates/repo/home.tmpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl
index e79f3d7751..7065bf33f4 100644
--- a/templates/repo/commits.tmpl
+++ b/templates/repo/commits.tmpl
@@ -9,8 +9,8 @@
{{$branchDropdownCurrentRefType := "branch"}}
{{$branchDropdownCurrentRefShortName := .BranchName}}
{{if .IsViewTag}}
- {{$branchDropdownCurrentRefType := "tag"}}
- {{$branchDropdownCurrentRefShortName := .TagName}}
+ {{$branchDropdownCurrentRefType = "tag"}}
+ {{$branchDropdownCurrentRefShortName = .TagName}}
{{end}}
{{template "repo/branch_dropdown" dict
"Repository" .Repository
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index c2f1be782a..1e77cd4919 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -50,8 +50,8 @@
{{$branchDropdownCurrentRefType := "branch"}}
{{$branchDropdownCurrentRefShortName := .BranchName}}
{{if .IsViewTag}}
- {{$branchDropdownCurrentRefType := "tag"}}
- {{$branchDropdownCurrentRefShortName := .TagName}}
+ {{$branchDropdownCurrentRefType = "tag"}}
+ {{$branchDropdownCurrentRefShortName = .TagName}}
{{end}}
{{template "repo/branch_dropdown" dict
"Repository" .Repository