Add delete repo

This commit is contained in:
Unknown
2014-03-13 02:39:09 -04:00
parent 18ba149137
commit 27104ac89a
10 changed files with 34 additions and 18 deletions

View File

@@ -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>