Sha256: 3d67dd431856b4e3b273ec80be2f1b755100383ffb6428641e79173d2c6844d4

Contents?: true

Size: 544 Bytes

Versions: 12

Compression:

Stored size: 544 Bytes

Contents

- link_path = controller.url_for(action: :toggle_published, id: resource.to_param)
- if resource.published?
  = button_to(link_path, class: 'btn btn-xs btn-danger btn-responsive', method: :post) do
    %span.glyphicon.glyphicon-eye-close
    %span.btn-text= t('.unpublish', default: t('acts_as_published.actions.unpublish'))
- else
  = button_to(link_path, class: 'btn btn-xs btn-success btn-responsive', method: :post) do
    %span.glyphicon.glyphicon-eye-open
    %span.btn-text= t('.publish', default: t('acts_as_published.actions.publish'))

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
rails-add_ons-3.0.0.pre1 app/views/component/table/body_cells/_acts_as_published.haml
rao-component-0.0.10.pre app/views/rao/component/table/body_cells/_acts_as_published.html.haml
rao-component-0.0.9.pre app/views/rao/component/table/body_cells/_acts_as_published.html.haml
rao-component-0.0.8.pre app/views/rao/component/table/body_cells/_acts_as_published.html.haml
rao-component-0.0.7.pre app/views/rao/component/table/body_cells/_acts_as_published.html.haml
rao-component-0.0.6.pre app/views/rao/component/table/body_cells/_acts_as_published.html.haml
rao-component-0.0.5.pre app/views/rao/component/table/body_cells/_acts_as_published.html.haml
rao-component-0.0.4.pre app/views/rao/component/table/body_cells/_acts_as_published.html.haml
rao-component-0.0.3.pre app/views/rao/component/table/body_cells/_acts_as_published.html.haml
rao-component-0.0.2.pre app/views/rao/component/table/body_cells/_acts_as_published.html.haml
rails-add_ons-2.2.1 app/views/component/table/body_cells/_acts_as_published.haml
rails-add_ons-2.2.0 app/views/component/table/body_cells/_acts_as_published.haml