Sha256: c54a4b053e6ba7f51682fb201840bef66484d1e4e994ba58cafdd4dd7f974c60

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

.tab-content
  %h6.actions
    - if Pundit.policy(current_user, Script).update?
      = link_to edit_admin_script_path(@script), title: t("keppler.actions.edit"), class: 'pull-left' do
        %i.icon-pencil
        %span= t('keppler.actions.edit')
    - if Pundit.policy(current_user, Script).destroy?
      = link_to admin_script_path(@script), class: 'new-menu', title: 'Delete', method: :delete, data: { confirm: t("keppler.messages.data_confirm") } do
        %i.icon-trash
        %span= t('keppler.actions.delete')
    %a#close-index-show.pull-right
      %i.icon-close
  %p.control-sidebar-heading
    %i.icon-chart
    = controller_name.singularize.humanize
  %ul.timeline
    - @script.attributes.each do |attribute, value|
      %li.list-row
        .timeline-item
          %h6.timeline-header.no-border
            %small
              %strong.display-value= t("activerecord.attributes.#{attribute}")
              %p.display-label= value
:coffee
  $('#close-index-show').click ->
    $('#index-show').css 'right', -$('#index-show').outerWidth()

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keppler-2.0.2 installer/core/app/views/admin/scripts/_index_show.html.haml
keppler-2.0.1 installer/core/app/views/admin/scripts/_index_show.html.haml
keppler-2.0.0 installer/core/app/views/admin/scripts/_index_show.html.haml