Sha256: 088de0d1daf753e53969b5ff65a236c1039544440ab7b8f07c15a2debfcf58f2

Contents?: true

Size: 596 Bytes

Versions: 7

Compression:

Stored size: 596 Bytes

Contents

ruby:
  # Fills the last column of the list with "buttons".
  # Requires row current_controller (supplied by Rails)
  url = if defined?(current_controller)
          "/#{current_controller}/#{row.id}"
        else
          url_for row
        end
  show = t('button.show')
  edit = t('button.edit')
  delete = t('button.delete')

= link_to image_tag('show.gif', alt: show, title: show), url
= link_to image_tag('plus.png', alt: edit, title: edit), "#{url}/edit"
= link_to image_tag('minus.png', alt: delete, title: delete), url,
  data: { turbo_method: :delete, turbo_confirm: 'Are you sure?' }

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rows_controller-3.1.6 app/views/rows/_row_buttons.slim
rows_controller-3.1.5 app/views/rows/_row_buttons.slim
rows_controller-3.1.4 app/views/rows/_row_buttons.slim
rows_controller-3.1.3 app/views/rows/_row_buttons.slim
rows_controller-3.1.2 app/views/rows/_row_buttons.slim
rows_controller-3.1.1 app/views/rows/_row_buttons.slim
rows_controller-3.1.0 app/views/rows/_row_buttons.slim