Sha256: 191af9aa7af4615edd2a421caa3e46a9a05480354185312b95cfe271ea2b3a6a

Contents?: true

Size: 1.03 KB

Versions: 6

Compression:

Stored size: 1.03 KB

Contents

.tab-content
  %h6.actions
    - if can?(<%= singular_table_name.camelcase %>).update?
      = link_to edit_admin_<%= singular_table_name %>_path(@<%= singular_table_name %>), title: t("keppler.actions.edit"), class: 'pull-left' do
        %i.icon-pencil
        %span= t('keppler.actions.edit')
    %a.close-index-show.pull-right
      %i.icon-close
  %h3.control-sidebar-heading
    = t("keppler.modules.#{controller_path.underscore}")
  %ul.timeline
    - @<%= singular_table_name %>.as_json(except: %[id position created_at updated_at deleted_at]).each do |attribute, value|
      -unless attribute.eql?('position') || attribute.eql?('deleted_at')
        %li.list-row
          .timeline-item
            %h6.timeline-header.no-border
              %small
                %strong.display-value= t("activerecord.attributes.#{attribute}")
                - if @attachments.include?(attribute)
                  .display-label= image_tag value.url if value.url
                - else
                  %p.display-label= value.blank? ? '-----------' : value

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
keppler-2.0.7 installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.haml
keppler-2.0.6 installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.haml
keppler-2.0.5 installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.haml
keppler-2.0.4.p1 installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.haml
keppler-2.0.4.pre.p1 installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.haml
keppler-2.0.4 installer/core/lib/generators/keppler_scaffold/templates/views/_index_show.haml