summaryrefslogtreecommitdiffstats
path: root/templates/repo
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/repo
parent18ba14913746c6c436c4632bdc9174ecfcd59dda (diff)
downloadgitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.tar.gz
gitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.zip
Add delete repo
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/nav.tmpl2
-rw-r--r--templates/repo/setting.tmpl5
-rw-r--r--templates/repo/toolbar.tmpl2
3 files changed, 5 insertions, 4 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>