Sha256: 28196a4609de07dfe1c0e17dce2279194f45ca1652073bb7c977a5b29da952c9

Contents?: true

Size: 1.92 KB

Versions: 25

Compression:

Stored size: 1.92 KB

Contents

.container
  .row
    .col-lg-2
      = link_to admin_<%= ROCKET_NAME.remove('keppler_') %>_<%= MODULE_NAME.pluralize %>_path, 'data-position': 'bottom', 'data-tooltip': t('keppler.actions.back') do
        .arrow-back.btn.btn-default
          %i.icon-arrow-left
          = t('keppler.actions.back')
  .show-section
    .row
      .col-lg-12
        .box.slice-box.p-15
          .box-header.with-border
            %h3.box-title= t('keppler.models.singularize.<%= MODULE_NAME.singularize %>').humanize
            .box-tools.pull-right
              - if can?(model).update?
                = link_to edit_admin_<%= ROCKET_NAME.remove('keppler_') %>_<%= MODULE_NAME.singularize %>_path(@<%= MODULE_NAME.singularize %>), class: 'btn btn-box-tool', title: t('keppler.actions.edit') do
                  %i.icon-pencil
              - if can?(model).destroy?
                = link_to admin_<%= ROCKET_NAME.remove('keppler_') %>_<%= MODULE_NAME.singularize %>_path(@<%= MODULE_NAME.singularize %>), class: 'btn btn-box-tool', title: t('keppler.actions.delete'), method: :delete, data: { confirm: t('keppler.messages.data_confirm') } do
                  %i.icon-trash

          .box-body.no-padding
            %table.table
              %tbody
                - @<%= MODULE_NAME.singularize %>.as_json(except: %w[position deleted_at]).each do |attribute, value|
                  %tr.list-row
                    %th.display-label= t("activerecord.attributes.#{attribute}")
                    %td.display-value.fs-body-1.tc-black-2
                      - if @attachments.dig('images', 'names').include?(attribute)
                        = image_tag value.url if value.url
                      - elsif @attachments.dig('images', 'names').map(&:pluralize).include?(attribute)
                        - value.each do |image|
                          = image_tag image.url if image.url
                      - else 
                        = sanitize raw value

Version data entries

25 entries across 24 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.21 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.20 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.19 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.18 testing-with-2.1.18/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.18 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.17 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.16 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.15 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.14 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.13 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.12 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.11 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.10 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.9 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.8 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.7 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.6 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.5 installer/core/lib/generators/keppler_add_module/templates/views/show.haml
keppler-2.1.4 installer/core/lib/generators/keppler_add_module/templates/views/show.haml