Sha256: 7df21a20d485f20983a002a7aa07efa9b14ea9d51e40b26544310688a98cfe20
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
# frozen_string_literal: true class NuntiusLayoutsTable < ActionTable::ActionTable model Nuntius::Layout column(:name) { |layout| layout.name } column(:metadata) { |layout| Nuntius.config.metadata_humanize(layout.metadata) } column :actions, title: '', sortable: false do |layout| content_tag(:span, class: 'btn-group btn-group-xs') do concat link_to(content_tag(:i, nil, class: 'fa fa-trash'), nuntius.admin_layout_url(layout), data: { turbo_confirm: 'Are you sure you want to delete the layout?', turbo_method: :delete }, class: 'btn btn-xs btn-danger') end end initial_order :name, :asc row_link { |layout| nuntius.edit_admin_layout_path(layout) } private def scope @scope = Nuntius::Layout.visible end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nuntius-1.0.27 | app/tables/nuntius_layouts_table.rb |