Mercurial > zeropaste
comparison 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 |
comparison
equal
deleted
inserted
replaced
188:45ec309a3fa8 | 189:b4b7a29b70f6 |
---|---|
34 <div class="well"></div> | 34 <div class="well"></div> |
35 </div> | 35 </div> |
36 </div> | 36 </div> |
37 </div> | 37 </div> |
38 | 38 |
39 <div class="input-append"> | |
40 <%= form_for @paste, :method => :delete do |f| %> | |
41 <%= f.text_field :key, :value => nil, :placeholder => 'Deletion key' %> | |
42 <%= f.submit 'Delete this paste', :class => 'btn btn-danger' %> | |
43 <% end %> | |
44 </div> | |
45 | |
39 <div> | 46 <div> |
40 <ul class="nav nav-pills"> | 47 <ul class="nav nav-pills"> |
41 <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li> | 48 <li><%= link_to 'Raw', paste_path(@paste, :txt) %></li> |
42 <li><%= link_to 'New paste based on this', root_path(:base => @paste.id) %></li> | 49 <li><%= link_to 'New paste based on this', root_path(:base => @paste.id) %></li> |
43 <li><%= link_to 'More Paste', root_path %></li> | 50 <li><%= link_to 'More Paste', root_path %></li> |