summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-09 15:50:06 -0700
committerUnknwon <joe2010xtmf@163.com>2014-08-09 15:50:06 -0700
commit08c6d07aad65f45efd5bf9f50d9cda68f59c0e69 (patch)
tree28c9dbbcd98262f626deadd9534a286e1692fde0 /templates
parent9a1d5d2489d25778e26ab413cb9ee78d3fe2823a (diff)
downloadgitea-08c6d07aad65f45efd5bf9f50d9cda68f59c0e69.tar.gz
gitea-08c6d07aad65f45efd5bf9f50d9cda68f59c0e69.zip
UI: Bare repository does not have visual link to settings page
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/bare.tmpl5
-rw-r--r--templates/repo/settings/hook_new.tmpl2
2 files changed, 6 insertions, 1 deletions
diff --git a/templates/repo/bare.tmpl b/templates/repo/bare.tmpl
index 241fea8519..60000647d3 100644
--- a/templates/repo/bare.tmpl
+++ b/templates/repo/bare.tmpl
@@ -14,7 +14,10 @@
<div id="repo-content" class="clear container">
<div id="repo-bare">
<div id="repo-bare-start" class="panel panel-radius">
- <p class="panel-header"><strong>Quick Start</strong></p>
+ <div class="panel-header">
+ <a class="btn btn-small btn-black btn-header btn-radius right" href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings"}}</a>
+ <strong>Quick Start</strong>
+ </div>
<div class="panel-content">
<div id="repo-clone" class="clear text-center">
<h2>Clone this repository</h2>
diff --git a/templates/repo/settings/hook_new.tmpl b/templates/repo/settings/hook_new.tmpl
index 917e6d1b72..2cd0eacb6a 100644
--- a/templates/repo/settings/hook_new.tmpl
+++ b/templates/repo/settings/hook_new.tmpl
@@ -49,6 +49,7 @@
</form>
</div>
</div>
+ {{if .PageIsSettingsHooksEdit}}
<br>
<div id="setting-content">
<div id="repo-hooks-history-panel" class="panel panel-radius">
@@ -60,6 +61,7 @@
</ul>
</div>
</div>
+ {{end}}
</div>
</div>
</div>