summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-20 21:28:12 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-20 21:28:12 +0800
commit42b08ff26158b9c815d13a427c596bd76468beb8 (patch)
tree95d7474410596475f94c4744a955b381d126554c /templates
parent47234f1031b35dfc6b3a20223d5dd61db2decda1 (diff)
downloadgitea-42b08ff26158b9c815d13a427c596bd76468beb8.tar.gz
gitea-42b08ff26158b9c815d13a427c596bd76468beb8.zip
fix single bare page link
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/nav.tmpl2
-rw-r--r--templates/repo/single_bare.tmpl4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl
index 92e529dbc7..e8685b08bc 100644
--- a/templates/repo/nav.tmpl
+++ b/templates/repo/nav.tmpl
@@ -13,7 +13,7 @@
<span class="caret"></span>
</button>
</div>
- <div class="btn-group" id="gogs-repo-watching">
+ <div class="btn-group {{if .IsRepositoryWatching}}watching{{end}}" id="gogs-repo-watching">
<button type="button" class="btn btn-default"><i class="fa fa-eye fa-lg fa-m"></i></button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
diff --git a/templates/repo/single_bare.tmpl b/templates/repo/single_bare.tmpl
index 06711157d4..bb05c2f9a6 100644
--- a/templates/repo/single_bare.tmpl
+++ b/templates/repo/single_bare.tmpl
@@ -6,8 +6,8 @@
<h3>Clone this repository</h3>
<div class="input-group col-md-8 col-md-offset-2 guide-buttons">
<span class="input-group-btn">
- <button class="btn btn-default" data-url="{{.CloneLink.SSH}}" type="button">SSH</button>
- <button class="btn btn-default" data-url="{{.CloneLink.HTTPS}}" type="button">HTTPS</button>
+ <button class="btn btn-default" data-link="{{.CloneLink.SSH}}" type="button">SSH</button>
+ <button class="btn btn-default" data-link="{{.CloneLink.HTTPS}}" type="button">HTTPS</button>
</span>
<input type="text" class="form-control" id="guide-clone-url" value="" readonly/>
<span class="input-group-btn">