diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-03-30 21:15:31 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-03-30 21:15:31 +0200 |
| commit | cdaa5e28290fe0e9e73ca3a0557ee021a7ab404b (patch) | |
| tree | 5cb6ba6f05bb5cafd8735775ddfeda78923f4940 /data | |
| parent | 8fadde4a3b26523b15ff019cafc1b49f9143293f (diff) | |
| download | phorkie-cdaa5e28290fe0e9e73ca3a0557ee021a7ab404b.tar.gz phorkie-cdaa5e28290fe0e9e73ca3a0557ee021a7ab404b.zip | |
paste deletion is possible now
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/delete.htm | 30 | ||||
| -rw-r--r-- | data/templates/display.htm | 8 |
2 files changed, 38 insertions, 0 deletions
diff --git a/data/templates/delete.htm b/data/templates/delete.htm new file mode 100644 index 0000000..ff27220 --- /dev/null +++ b/data/templates/delete.htm @@ -0,0 +1,30 @@ +{% extends "base.htm" %} +{% block title %} +Confirm deletion of repository #{{repo.id}} +{% endblock %} + +{% block content %} +<h1>Delete paste #{{repo.id}}?</h1> +<div class="well" style="margin-top: 5ex;"> + <p> + Do you really want to delete the folloing paste #{{repo.id}}? + </p> + <p> + <strong>{{repo.getDescription}}</strong> + </p> + + <div class="row-fluid" style="margin-top: 5ex;"> + <div class="span6"> + <a class="btn" href="{{repo.getLink('display')}}">Cancel</a> + </div> + <div class="span6" style="text-align: right"> + <form method="post" action="{{repo.getLink('delete-confirm')}}" style="margin: 0px"> + <button class="btn btn-danger" type="submit"> + <i class="icon-trash icon-white"></i> + Permanently delete + </button> + </form> + </div> + </div> +</div> +{% endblock %} diff --git a/data/templates/display.htm b/data/templates/display.htm index ca52775..2ba490e 100644 --- a/data/templates/display.htm +++ b/data/templates/display.htm @@ -34,6 +34,14 @@ </div> </div> {% endfor %} + +<div class="row-fluid" style="margin-top: 5ex"> + <div class="span12" style="text-align: right;"> + <a class="btn btn-warning" href="{{repo.getLink('delete')}}"> + <i class="icon-trash icon-white"></i> Delete + </a> + </div> +</div> {% endblock %} {% block sidebar %} |
