Sha256: 060429b8f6ffa9745a6f822272810367e0221b53a442a41b6169690ffeb5a064
Contents?: true
Size: 942 Bytes
Versions: 7
Compression:
Stored size: 942 Bytes
Contents
= table.column(:preview_picture) do |item| - if item.preview_picture.present? %img.img-responsive.bottom-margin-2{ src: item.preview_picture.image.url, alt: item.preview_picture.description, title: item.preview_picture.description } = table.column :locale = table.column :title, class: 'truncate-chars truncate-chars-30' = table.column :body, class: 'truncate-chars truncate-chars-30' = table.timestamps = table.acts_as_published_actions / = table.column(:additional_actions, class: 'table-data-centered') do |item| / - if item.published? / = link_to(toggle_published_item_path(item), class: 'btn btn-xs btn-danger', method: :post, title: t('.unpublish')) do / %span.glyphicon.glyphicon-eye-close / = t('.unpublish') / - else / = link_to(toggle_published_item_path(item), class: 'btn btn-xs btn-success', method: :post, title: t('.publish')) do / %span.glyphicon.glyphicon-eye-open / = t('.publish')
Version data entries
7 entries across 7 versions & 1 rubygems