Sha256: 310347b2c418d5f92e13c1e95645b27715d93b7084ee2ca4ec04a9d7319a9e15

Contents?: true

Size: 1.88 KB

Versions: 25

Compression:

Stored size: 1.88 KB

Contents

- objects.each do |script|
  %tr{ id: "row-#{script.id}" }
    %td.item-check
      - if can?(Script).destroy_multiple?
        .checkbox
          %label{ for: "checkbox-#{script.id}" }
            %input{ type: 'checkbox', id: "checkbox-#{script.id}", 'checklist-model' => 'check', 'checklist-value' => script.id.to_s, '@click' => "listDelete(#{script.id})" }
            %span.cr
              %i.cr-icon.glyphicon.glyphicon-ok
    %td.hidden-xs.hidden-sm
    %td.hidden-xs.hidden-sm
      = link_to admin_script_path(script), title: t('keppler.actions.show') do
        %span= script.name
    %td.hidden-xs.hidden-sm
      = link_to admin_script_path(script), title: t('keppler.actions.show') do
        %span= script.url
    %td.dropdown{ style: 'padding-right: 30px' }
      %a.dropdown-toggle.pull-right{ id: "menu-#{script.id}", 'aria-expanded' => 'false', 'aria-haspopup' => 'true', 'data-toggle' => 'dropdown' }
        %i.icon-options-vertical
      %ul.actions.dropdown-menu{ 'aria-labelledby' => "menu-#{script.id}" }
        - if can?(Script).show?
          %li
            = link_to admin_script_path(script), title: t('keppler.actions.show') do
              %i.icon-eye
              = t('keppler.actions.show')
        - if can?(Script).update?
          %li
            = link_to edit_admin_script_path(script), title: t('keppler.actions.edit') do
              %i.icon-pencil
              = t('keppler.actions.edit')
        - if can?(Script).clone?
          %li
            = link_to admin_script_clone_path(script), title: t('keppler.actions.clone') do
              %i.icon-docs
              = t('keppler.actions.clone')
        - if can?(Script).destroy?
          %li
            = link_to admin_script_path(script), title: t('keppler.actions.delete'), method: :delete, data: { confirm: t('keppler.messages.data_confirm') } do
              %i.icon-trash
              = t('keppler.actions.delete')

Version data entries

25 entries across 24 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.21 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.20 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.19 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.18 testing-with-2.1.18/app/views/admin/scripts/_listing.html.haml
keppler-2.1.18 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.17 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.16 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.15 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.14 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.13 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.12 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.11 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.10 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.9 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.8 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.7 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.6 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.5 installer/core/app/views/admin/scripts/_listing.html.haml
keppler-2.1.4 installer/core/app/views/admin/scripts/_listing.html.haml