Sha256: 7ff3dad58432b950bcd840c19f242c82c77b8548d162e4d02853d81aeb3bbf9a

Contents?: true

Size: 1.44 KB

Versions: 5

Compression:

Stored size: 1.44 KB

Contents

#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

5 entries across 5 versions & 1 rubygems

Version Path
itsf_backend-4.2.3 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-4.2.2 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-4.2.1 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-4.2.0 app/views/itsf/backend/resource/base/show.html.haml
itsf_backend-4.0.1 app/views/itsf/backend/resource/base/show.html.haml