- objects.each do |function| %tr{ id: "row-#{function.id}" } %td.item-check{ style: 'width: 10%' } - if can?(KepplerFrontend::Function).destroy_multiple? .checkbox %label{ for: "checkbox-#{function.id}" } %input{ type: 'checkbox', id: "checkbox-#{function.id}", 'checklist-model' => 'check', 'checklist-value' => "#{function.id}", '@click' => "listDelete(#{function.id})"} %span.cr %i.cr-icon.glyphicon.glyphicon-ok %td.hidden-xs = link_to admin_frontend_function_path(function), class: 'new-menu', title: t('keppler.actions.show') do %span = function.name %td.hidden-xs.hidden-sm = link_to admin_frontend_function_path(function), class: 'new-menu', title: t('keppler.actions.show') do %span = function.description %td{ style: 'width: 15px;padding-right:15px;' } %a.action-btn.pull-right{:id => "menu-#{function.id}", 'aria-expanded': 'false', 'aria-haspopup': 'true', 'data-toggle': 'dropdown' } %i.icon-options-vertical %ul.actions.dropdown-menu{ 'aria-labelledby': "menu-#{function.id}" } - if can?(KepplerFrontend::Function).index? %li = link_to admin_frontend_function_path(function), class: 'new-menu', title: t('keppler.actions.show') do %i.icon-screen-desktop = t('keppler.actions.editor') - if can?(KepplerFrontend::Function).update? %li = link_to edit_admin_frontend_function_path(function), class: 'new-menu', title: t('keppler.actions.edit') do %i.icon-pencil = t('keppler.actions.edit') - if can?(KepplerFrontend::Function).clone? %li = link_to admin_frontend_function_clone_path(function), class: 'new-menu', title: t('keppler.actions.clone') do %i.icon-docs = t('keppler.actions.clone') - if can?(KepplerFrontend::Function).destroy? %li = link_to admin_frontend_function_path(function), class: 'new-menu', title: t('keppler.actions.delete'), method: :delete, data: { confirm: t('keppler.messages.data_confirm') } do %i.icon-trash = t('keppler.actions.delete') -# %td{ style: 'width: 5%;' } -# %a.drop{ href: '#' } -# %i.icon-cursor-move