aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/templates/delete.htm30
-rw-r--r--data/templates/display.htm8
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 %}