Sha256: 4e3f7eb29dd522c7a03ac48622c774d547c78d2c596609d989aa25ba0dc1cb81
Contents?: true
Size: 1.3 KB
Versions: 3
Compression:
Stored size: 1.3 KB
Contents
<% if can?(:edit, document) %> <div class="btn-group"> <button class="btn btn-default btn-small dropdown-toggle" data-toggle="dropdown" href="#">Select an action <span class="caret"></span></button> <ul class="dropdown-menu"> <% if can? :edit, document %> <li> <%= link_to [:edit, document], class: 'itemicon itemedit' do %><i class="glyphicon glyphicon-pencil"></i> Edit <%= document.human_readable_type %> <% end %> </li> <li> <% if @collection || (@presenter and @presenter.collection?) # We're on the view page for @collection. -%> <%= link_to_remove_from_collection(document) %> <% else %> <%= link_to document, class: 'itemicon itemtrash', title: "Delete #{document.human_readable_type}", method: :delete, data: { confirm: "Deleting a #{document.human_readable_type} from #{application_name} is permanent. Click OK to delete this #{document.human_readable_type} from #{application_name}, or Cancel to cancel this operation" } do %> <i class="glyphicon glyphicon-trash"></i> Delete <%= document.human_readable_type %> <% end %> <% end %> </li> <% end %> </ul> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems