Sha256: ac9e3a0c232393676b430e1a404e3fa67f4d2b6caf46e18ee58dcfc73da37967

Contents?: true

Size: 1.22 KB

Versions: 6

Compression:

Stored size: 1.22 KB

Contents

    <% if can? :edit, presenter.solr_document %>
      <div class="panel-heading">
        <div class="row">
          <div class="col-sm-8">
            <h2 class="panel-title display-page"><%= presenter.to_s %></h2>
          </div>
          <div class="col-sm-4">
            <div class="pull-right">
              <%= link_to edit_admin_admin_set_path(presenter), class: 'btn btn-primary' do %>
                <span class="fa fa-edit"></span> <%= t(:'helpers.action.edit') %>
              <% end %>
              <% if presenter.disable_delete? %>
                <span title="<%= presenter.disabled_message %>">
                  <%= link_to admin_admin_set_path(presenter), class: 'btn btn-danger disabled' do %>
                    <span class="fa fa-remove"></span> <%= t(:'helpers.action.delete') %>
                  <% end %>
                </span>
              <% else %>
                <%= link_to admin_admin_set_path(presenter), class: 'btn btn-danger', data: { confirm: t('.confirm_delete'), method: :delete } do %>
                  <span class="fa fa-remove"></span> <%= t(:'helpers.action.delete') %>
                <% end %>
              <% end %>
            </div>
          </div>
        </div>
      </div>
    <% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hyrax-2.2.0 app/views/hyrax/admin/admin_sets/_show_actions.html.erb
hyrax-2.1.0 app/views/hyrax/admin/admin_sets/_show_actions.html.erb
hyrax-2.1.0.rc4 app/views/hyrax/admin/admin_sets/_show_actions.html.erb
hyrax-2.1.0.rc3 app/views/hyrax/admin/admin_sets/_show_actions.html.erb
hyrax-2.1.0.rc2 app/views/hyrax/admin/admin_sets/_show_actions.html.erb
hyrax-2.1.0.rc1 app/views/hyrax/admin/admin_sets/_show_actions.html.erb