aboutsummaryrefslogtreecommitdiff
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-22 12:58:12 -0400
committerUnknwon <u@gogs.io>2017-03-22 12:58:12 -0400
commitbb86d66496078b8c2fb242b6286d682ff9d5aa2f (patch)
treeb14d0d4d2934c6d1b77f828d6d24dc7f31407fcf /templates/repo
parentaba87895426663fe166e4d81b81883f45ce957ce (diff)
repo: rename PageIsViewCode -> PageIsViewFiles
Also highlight 'Files' tab when use editor.
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/header.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 45feff48..2193d0a5 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -49,7 +49,7 @@
{{if not .IsDiffCompare}}
<div class="ui tabs container">
<div class="ui tabular menu navbar">
- <a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}">
+ <a class="{{if .PageIsViewFiles}}active{{end}} item" href="{{.RepoLink}}">
<i class="octicon octicon-file-text"></i> {{.i18n.Tr "repo.files"}}
</a>
{{if .Repository.EnableIssues}}