Sha256: e26945a129580bc2f2e7cf0579d270d34a7e209b081121d91fb208c7cf1d017b

Contents?: true

Size: 446 Bytes

Versions: 18

Compression:

Stored size: 446 Bytes

Contents

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

= link_to t('button.show').html_safe,   url
= link_to t('button.edit').html_safe,   url + '/edit'
= link_to t('button.delete').html_safe, url,
   remote: true,
   data: { confirm: 'Are you sure?' }, method: :delete

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rows_controller-3.0.3 app/views/rows/_row_buttons.slim
rows_controller-3.0.1 app/views/rows/_row_buttons.slim
rows_controller-3.0.0 app/views/rows/_row_buttons.slim
rows_controller-2.2.2 app/views/rows/_row_buttons.slim
rows_controller-2.2.1 app/views/rows/_row_buttons.slim
rows_controller-2.2.0 app/views/rows/_row_buttons.slim
rows_controller-2.1.3 app/views/rows/_row_buttons.slim
rows_controller-2.1.2 app/views/rows/_row_buttons.slim
rows_controller-2.1.0 app/views/rows/_row_buttons.slim
rows_controller-2.0.8 app/views/rows/_row_buttons.slim
rows_controller-2.0.7 app/views/rows/_row_buttons.slim
rows_controller-2.0.5 app/views/rows/_row_buttons.slim
rows_controller-2.0.3 app/views/rows/_row_buttons.slim
rows_controller-1.1.9 app/views/rows/_row_buttons.slim
rows_controller-1.1.7 app/views/rows/_row_buttons.slim
rows_controller-1.1.6 app/views/rows/_row_buttons.slim
rows_controller-1.0.3 app/views/rows/_row_buttons.slim
rows_controller-1.0.1 app/views/rows/_row_buttons.slim