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