diff app/views/pastes/show.html.erb @ 189:b4b7a29b70f6

Initial work for paste deletion.
author Edho Arief <edho@myconan.net>
date Sat, 23 Feb 2013 14:01:22 +0900
parents b1aa7865bc7f
children d4682cea8e58
line wrap: on
line diff
--- a/app/views/pastes/show.html.erb	Sat Feb 23 13:25:09 2013 +0900
+++ b/app/views/pastes/show.html.erb	Sat Feb 23 14:01:22 2013 +0900
@@ -36,6 +36,13 @@
   </div>
 </div>
 
+<div class="input-append">
+  <%= form_for @paste, :method => :delete do |f| %>
+    <%= f.text_field :key, :value => nil, :placeholder => 'Deletion key' %>
+    <%= f.submit 'Delete this paste', :class => 'btn btn-danger' %>
+  <% end %>
+</div>
+
 <div>
   <ul class="nav nav-pills">
     <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li>