aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-09 00:32:53 -0500
committerUnknwon <u@gogs.io>2015-12-09 00:32:53 -0500
commita576224d0ea0a6a48207002229ae38937bd038a3 (patch)
tree479bb167651a1301ca71b7175078c1e1be1336c0 /templates/repo
parent989f30eb416f2d8709aaff9c235d555f8b109e36 (diff)
downloadgitea-a576224d0ea0a6a48207002229ae38937bd038a3.tar.gz
gitea-a576224d0ea0a6a48207002229ae38937bd038a3.zip
unified name: IsViewBranch, IsViewCommit and IsViewTag
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/home.tmpl4
-rw-r--r--templates/repo/view_file.tmpl2
-rw-r--r--templates/repo/wiki/view.tmpl2
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 12820e46b3..ccbe6639cf 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -39,14 +39,14 @@
</span>
</a>
<a class="reference column" href="#" data-target="#tag-list">
- <span class="text {{if .IsTag}}black{{end}}">
+ <span class="text {{if .IsViewTag}}black{{end}}">
<i class="reference tags icon"></i> {{.i18n.Tr "repo.tags"}}
</span>
</a>
</div>
</div>
</div>
- <div id="branch-list" class="scrolling menu" {{if .IsTag}}style="display: none"{{end}}>
+ <div id="branch-list" class="scrolling menu" {{if .IsViewTag}}style="display: none"{{end}}>
{{range .Branches}}
<div class="item {{if eq $.BranchName .}}selected{{end}}" data-url="{{$.RepoLink}}/src/{{EscapePound .}}">{{.}}</div>
{{end}}
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index cf6198195a..021a62f1d1 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -14,7 +14,7 @@
{{if not .ReadmeInList}}
<div class="ui right">
<div class="ui small grey basic buttons">
- {{if not .IsCommit}}
+ {{if not .IsViewCommit}}
<a class="ui button" href="{{.RepoLink}}/src/{{.CommitID}}/{{EscapePound .TreeName}}">{{.i18n.Tr "repo.file_permalink"}}</a>
{{end}}
<a class="ui button" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}/{{EscapePound .TreeName}}">{{.i18n.Tr "repo.file_history"}}</a>
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl
index cd7642bcc2..050c34b0a9 100644
--- a/templates/repo/wiki/view.tmpl
+++ b/templates/repo/wiki/view.tmpl
@@ -18,7 +18,7 @@
<i class="filter icon"></i>
<input name="search" placeholder="{{.i18n.Tr "repo.wiki.filter_page"}}...">
</div>
- <div class="scrolling menu" {{if .IsTag}}style="display: none"{{end}}>
+ <div class="scrolling menu">
{{range .Pages}}
<div class="item {{if eq $.Title .Name}}selected{{end}}" data-url="{{$.RepoLink}}/wiki/{{.URL}}">{{.Name}}</div>
{{end}}