You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
3.1 KiB

  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. {{template "repo/nav" .}}
  4. {{template "repo/toolbar" .}}
  5. <div id="gogs-body" class="container">
  6. <div id="gogs-user-setting-nav" class="col-md-3">
  7. <ul class="list-group" data-init="tabs">
  8. <li class="list-group-item active"><a href="/{{.Owner.Name}}/{{.Repository.Name}}/settings">Options</a></li>
  9. <!--<li class="list-group-item"><a href="#">Collaborators</a></li>
  10. <li class="list-group-item"><a href="#">Notifications</a></li>-->
  11. </ul>
  12. </div>
  13. <div id="gogs-repo-setting-container" class="col-md-9">
  14. {{if .ErrorMsg}}<p class="alert alert-danger">{{.ErrorMsg}}</p>{{end}}
  15. <div class="panel panel-default">
  16. <div class="panel-heading">
  17. Repository Options
  18. </div>
  19. <div class="panel-body">
  20. </div>
  21. </div>
  22. <div class="panel panel-warning">
  23. <div class="panel-heading">
  24. Danger Zone
  25. </div>
  26. <div class="panel-body">
  27. <button type="button" class="btn btn-default pull-right" href="#delete-repository-modal" data-toggle="modal">
  28. Delete this repository
  29. </button>
  30. <dd>
  31. <dt>Delete this repository.</dt>
  32. <dl>Once you delete a repository, there is no going back. Please be certain.</dl>
  33. </dd>
  34. <div class="modal fade" id="delete-repository-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  35. <div class="modal-dialog">
  36. <form action="/{{.Owner.Name}}/{{.Repository.Name}}/settings" method="post" class="modal-content">
  37. <input type="hidden" name="action" value="delete">
  38. <div class="modal-header">
  39. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  40. <h4 class="modal-title" id="myModalLabel">Delete repository</h4>
  41. </div>
  42. <div class="modal-body">
  43. <div class="form-group">
  44. <label>Please enter your repository name "<strong class="text-danger">{{.Repository.Name}}</strong>"</label>
  45. <input name="repository" class="form-control" type="text" placeholder="Type your repository name" required="required">
  46. </div>
  47. </div>
  48. <div class="modal-footer">
  49. <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
  50. <button class="btn btn-danger btn-lg">I understand the consequences, delete this repository</button>
  51. </div>
  52. </form>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. {{template "base/footer" .}}