Sha256: e61d8d9f7cfb059296915ac547221eddcf2b1f25e0974ce8633ff3dd0edbc090

Contents?: true

Size: 1.46 KB

Versions: 11

Compression:

Stored size: 1.46 KB

Contents

%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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
itsf_backend-4.0.0 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.1.1 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.1.0 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.0.7 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.0.6 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.0.5 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.0.4 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.0.3 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.0.2 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.0.1 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-3.0.0 app/views/itsf/backend/resource/base/show.html.haml