Sha256: 1b91f16697cacd26f0dddb5c2ceca43c42306b53325e0fc169587b57a50cc3bb

Contents?: true

Size: 549 Bytes

Versions: 20

Compression:

Stored size: 549 Bytes

Contents

class Admix::SettingsDatagrid

  include Datagrid

  scope do
    Setting.desc(:name)
  end

  filter :name, :string

  column :name, header: I18n.t('settings.fields.name')
  column :key, header: I18n.t('settings.fields.key')
  column :value, header: I18n.t('settings.fields.value')

  column :image, header: I18n.t('settings.fields.image'), html: true do |post|
    if post.image?
      image_tag post.image.url
    else
      "--"
    end
  end

  column :activated, header: I18n.t('settings.fields.activated')

  include Admix::TableActions

end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
mix-rails-0.22.0 mix-rails-settings/app/models/admix/settings_datagrid.rb
mix-rails-settings-0.22.0 app/models/admix/settings_datagrid.rb
mix-rails-0.16.0 mix-rails-settings/app/models/admix/settings_datagrid.rb
mix-rails-settings-0.16.0 app/models/admix/settings_datagrid.rb
mix-rails-0.15.0 mix-rails-settings/app/models/admix/settings_datagrid.rb
mix-rails-settings-0.15.0 app/models/admix/settings_datagrid.rb
mix-rails-0.12.2 mix-rails-settings/app/models/admix/settings_datagrid.rb
mix-rails-settings-0.12.2 app/models/admix/settings_datagrid.rb
mix-rails-0.12.1 mix-rails-settings/app/models/admix/settings_datagrid.rb
mix-rails-settings-0.12.1 app/models/admix/settings_datagrid.rb
mix-rails-settings-0.11.0 app/models/admix/settings_datagrid.rb
mix-rails-0.10.4 mix-rails-settings/app/models/admix/settings_datagrid.rb
mix-rails-settings-0.10.4 app/models/admix/settings_datagrid.rb
mix-rails-0.10.3 mix-rails-settings/app/models/admix/settings_datagrid.rb
mix-rails-settings-0.10.3 app/models/admix/settings_datagrid.rb
mix-rails-settings-0.10.2 app/models/admix/settings_datagrid.rb
mix-rails-settings-0.10.1 app/models/admix/settings_datagrid.rb
mix-rails-0.7.0 settings/app/models/admix/settings_datagrid.rb
mix-rails-0.6.0 settings/app/models/admix/settings_datagrid.rb
mix-rails-0.5.0 settings/app/models/admix/settings_datagrid.rb