aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/branch_dropdown.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-14 21:27:36 +0800
committerUnknwon <u@gogs.io>2016-01-14 21:27:36 +0800
commitd1675c2701323a0946b00a4ba5ba076bbb83d984 (patch)
tree3d674a4de2d6bb56f7bc277728c63c49c1007627 /templates/repo/branch_dropdown.tmpl
parent29b07693dd3425994fe921ac307173f787addec8 (diff)
downloadgitea-d1675c2701323a0946b00a4ba5ba076bbb83d984.tar.gz
gitea-d1675c2701323a0946b00a4ba5ba076bbb83d984.zip
fix CSS of branch dropdown when view commits under revision
Diffstat (limited to 'templates/repo/branch_dropdown.tmpl')
-rw-r--r--templates/repo/branch_dropdown.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/branch_dropdown.tmpl b/templates/repo/branch_dropdown.tmpl
index a825ee243c..b97e504c86 100644
--- a/templates/repo/branch_dropdown.tmpl
+++ b/templates/repo/branch_dropdown.tmpl
@@ -17,7 +17,7 @@
<div class="ui grid">
<div class="two column row">
<a class="reference column" href="#" data-target="#branch-list">
- <span class="text {{if .IsViewBranch}}black{{end}}">
+ <span class="text {{if not .IsViewTag}}black{{end}}">
<i class="icon octicon octicon-git-branch"></i> {{.i18n.Tr "repo.branches"}}
</span>
</a>
@@ -34,7 +34,7 @@
<div class="item {{if eq $.BranchName .}}selected{{end}}" data-url="{{$.RepoLink}}/{{if $.PageIsCommits}}commits{{else}}src{{end}}/{{EscapePound .}}">{{.}}</div>
{{end}}
</div>
- <div id="tag-list" class="scrolling menu" {{if .IsViewBranch}}style="display: none"{{end}}>
+ <div id="tag-list" class="scrolling menu" {{if not .IsViewTag}}style="display: none"{{end}}>
{{range .Tags}}
<div class="item {{if eq $.BranchName .}}selected{{end}}" data-url="{{$.RepoLink}}/{{if $.PageIsCommits}}commits{{else}}src{{end}}/{{EscapePound .}}">{{.}}</div>
{{end}}