Sha256: 771e3e56a492c98cc79a59f12a1e36a332e9ac009bedd7e09e81aae37f6c222f

Contents?: true

Size: 772 Bytes

Versions: 1

Compression:

Stored size: 772 Bytes

Contents

= link_to({ action: :index }, class: 'btn btn-light btn-responsive') do
  %i.fas.fa-arrow-left
  %span.btn-text= t('.back')

.ml-auto
  - if Cmor::Core.features?(:cmor_audits) && controller.respond_to?(:versions)
    = link_to([:versions, resource_namespace, resource], class: 'btn btn-secondary btn-circle btn-lg') do
      %i.fas.fa-history

  - if available_rest_actions.include?(:destroy)
    = link_to([resource_namespace, resource], class: 'destroy btn btn-danger btn-circle btn-lg', method: :delete, 'data-confirm': I18n.t('administrador.controller.confirmations.destroy')) do
      %i.fas.fa-fire

  - if available_rest_actions.include?(:edit)
    = link_to([:edit, resource_namespace, resource], class: 'btn btn-success btn-circle btn-lg') do
      %i.fas.fa-edit

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cmor_core_backend-0.0.56.pre app/views/cmor/core/backend/resources_controller/base/_show_actions.html.haml