%p#notice= notice #resource-pages-naviation.bottom-margin-1 = render 'resource_pages_navigation', resource: @resource #page-title.bottom-margin-1 .row .col-xs-8 %h1= @resource.try_all(*Itsf::Backend::Configuration.resource_title_methods) .col-xs-4 #page-actions.btn-container-right - if !features?(:pundit) || policy(resource_class).destroy? = link_to(resource_path(@resource), method: :delete, class: 'btn btn-danger btn-responsive', 'data-confirm': I18n.t('confirmations.delete')) do %span.glyphicon.glyphicon-fire %span.btn-text= t('.destroy') = render 'show_extra_actions', resource: @resource .panel.panel-default.panel-with-actions %table.table.table-striped.table-condensed.table-hover = render_resource(@resource, as: :bootstrap_attribute_table) do |table| = render 'show', table: table .panel-footer = render 'show_extras', resource: @resource .well.well-sm .clearfix - begin = link_to collection_path, class: 'btn btn-default btn-responsive pull-right' do %span.glyphicon.glyphicon-arrow-left %span.btn-text= t('.back') - rescue ActionController::UrlGenerationError - begin - if !features?(:pundit) || policy(resource_class).edit? = link_to(edit_resource_path(@resource), class: 'btn btn-primary btn-responsive') do %span.glyphicon.glyphicon-pencil %span.btn-text= t('.edit') - rescue ActionController::UrlGenerationError