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