Sha256: 0404e61f7aea32dcc868294a933488e095b831f15bfc8655711db6fc07bc2e58
Contents?: true
Size: 1.24 KB
Versions: 31
Compression:
Stored size: 1.24 KB
Contents
.tab-content %h6.actions - if can?(<%= namespaced_path.split('_').map(&:capitalize).join('') %>::<%= singular_table_name.camelcase %>).update? = link_to edit_admin_<%= namespaced_path.split('_').drop(1).join('_') %>_<%= 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(only: <%= attributes.map{|attr| attr.name} %>).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 :coffee $('#close-index-show').click -> $('#index-show').css 'right', -$('#index-show').outerWidth()
Version data entries
31 entries across 31 versions & 1 rubygems