summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-13 02:39:09 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-13 02:39:09 -0400
commit27104ac89a4c489809068ae5c6dbe383ce7fbde2 (patch)
tree2f19eeecc08209285d9aee53c0c224a4fd8967d3 /templates
parent18ba14913746c6c436c4632bdc9174ecfcd59dda (diff)
downloadgitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.tar.gz
gitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.zip
Add delete repo
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/nav.tmpl2
-rw-r--r--templates/repo/setting.tmpl5
-rw-r--r--templates/repo/toolbar.tmpl2
-rw-r--r--templates/user/dashboard.tmpl1
-rw-r--r--templates/user/setting.tmpl2
5 files changed, 7 insertions, 5 deletions
diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl
index 1e52488897..5d60d46107 100644
--- a/templates/repo/nav.tmpl
+++ b/templates/repo/nav.tmpl
@@ -26,6 +26,6 @@
<button type="button" class="btn btn-default"><i class="fa fa-code-fork"></i>Fork&nbsp;&nbsp;{{.Repository.NumForks}}</button>
</div>
</div>
- <h3><i class="fa fa-book fa-lg"></i><a href="/{{.Owner.Name}}/">{{.Owner.Name}}</a> / {{.Repository.Name}}</h3>
+ <h3><i class="fa fa-book fa-lg"></i><a href="/user/{{.Owner.Name}}">{{.Owner.Name}}</a> / {{.Repository.Name}}</h3>
</div>
</div> \ No newline at end of file
diff --git a/templates/repo/setting.tmpl b/templates/repo/setting.tmpl
index 262b91a187..5e0a9f6cb9 100644
--- a/templates/repo/setting.tmpl
+++ b/templates/repo/setting.tmpl
@@ -22,8 +22,9 @@
<p>This action <strong>CANNOT</strong> be undone. This will delete the repository, wiki, issues, and comments permanently. </p>
<form action="/repo/delete" method="post">
- <input type="hidden" name="reponame" value="{{.Repository.Name}}"/>
- <input type="hidden" name="username" value="{{.Owner.Name}}"/>
+ <input type="hidden" name="userId" value="{{.Owner.Id}}"/>
+ <input type="hidden" name="userName" value="{{.Owner.Name}}"/>
+ <input type="hidden" name="repoId" value="{{.Repository.Id}}"/>
<hr/>
<button class="btn btn-danger btn-lg">I understand the consequences, delete this repository</button>
</form>
diff --git a/templates/repo/toolbar.tmpl b/templates/repo/toolbar.tmpl
index fb2145ab3d..a409fcbea7 100644
--- a/templates/repo/toolbar.tmpl
+++ b/templates/repo/toolbar.tmpl
@@ -25,7 +25,7 @@
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Statics <b class="caret"></b></a>
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Statistic <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Graphic</a></li>
<li><a href="#">Pulse</a></li>
diff --git a/templates/user/dashboard.tmpl b/templates/user/dashboard.tmpl
index e8fbe29605..7768a7ee6d 100644
--- a/templates/user/dashboard.tmpl
+++ b/templates/user/dashboard.tmpl
@@ -12,6 +12,7 @@
</div>
</div>
<div id="gogs-body" class="container">
+ {{if .HasInfo}}<div class="alert alert-info">{{.InfoMsg}}</div>{{end}}
<div id="gogs-feed-left" class="col-md-8">
Website is still in the progress of building...please come back later! <strong>{{.SignedUserName}}</strong> is logged!
</div>
diff --git a/templates/user/setting.tmpl b/templates/user/setting.tmpl
index 928d359a26..79de58fe75 100644
--- a/templates/user/setting.tmpl
+++ b/templates/user/setting.tmpl
@@ -7,7 +7,7 @@
<li class="list-group-item list-group-item-success"><a href="/user/setting">Account Profile</a></li>
<li class="list-group-item"><a href="#">Emails and Password</a></li>
<li class="list-group-item"><a href="#">Notifications</a></li>
- <li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li>
+ <li class="list-group-item"><a href="/user/setting/ssh">SSH Keys</a></li>
<li class="list-group-item"><a href="#">Security</a></li>
<li class="list-group-item"><a href="/user/delete">Delete Account</a></li>
</ul>