aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-16 23:10:45 -0400
committerUnknwon <u@gogs.io>2017-03-16 23:10:45 -0400
commit171f97868dccb6d2c2a73b44b07593ccb8f348e6 (patch)
tree16a6a9ab501004d83237126956b60926a523bc42 /templates
parentbecaec19a773301546045294d850d79614809c7c (diff)
repo: allow issues and wiki for bare repository (#4104)
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/repo/bare.tmpl7
-rw-r--r--templates/repo/header.tmpl2
3 files changed, 6 insertions, 5 deletions
diff --git a/templates/.VERSION b/templates/.VERSION
index 5c9f0f2f..cf7c3d70 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.10.20.0316 \ No newline at end of file
+0.10.21.0316 \ No newline at end of file
diff --git a/templates/repo/bare.tmpl b/templates/repo/bare.tmpl
index fd019f71..b4bcc47c 100644
--- a/templates/repo/bare.tmpl
+++ b/templates/repo/bare.tmpl
@@ -8,9 +8,6 @@
{{if .IsRepositoryAdmin}}
<h4 class="ui top attached header">
{{.i18n.Tr "repo.quick_guide"}}
- <div class="ui right">
- <a class="ui black tiny button" href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings"}}</a>
- </div>
</h4>
<div class="ui attached guide table segment">
<div class="item">
@@ -54,6 +51,10 @@ git push -u origin master</code></pre>
git push -u origin master</code></pre>
</div>
</div>
+ {{else}}
+ <div class="ui segment center">
+ {{.i18n.Tr "repo.bare_message"}}
+ </div>
{{end}}
</div>
</div>
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 08197d79..45feff48 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -46,7 +46,7 @@
</div><!-- end grid -->
</div><!-- end container -->
{{end}}
-{{if not (or .IsBareRepo .IsDiffCompare)}}
+{{if not .IsDiffCompare}}
<div class="ui tabs container">
<div class="ui tabular menu navbar">
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}">