">
<%= f.id %> |
<% if !f.trash? && (can? :update, f) %>
<%= link_to title, {action: :edit, id: f.id}, class: "cama_ajax_request" %>
<% else %>
<%= title %>
<% end %>
|
<%= content_tag :td, f.post_parent.present? ? link_to(f.parent.decorate.the_title, {action: :edit, id: f.post_parent}, class: "cama_ajax_request") : '' if @lists_tab == "draft" %>
<%= link_to raw(f.the_status), {action: :index, s: f.status}, class: "cama_ajax_request" %> |
<%= f.author.fullname %> |
<% if @post_type.manage_categories? %>
<%= raw post_type_list_taxonomy(f.categories, "success") %> |
<% end %>
<% if @post_type.manage_tags? %>
<%= raw post_type_list_taxonomy(f.post_tags, "default") %> |
<% end %>
<% extra_column = {post: f, post_type: @post_type, content: "", from_body: true}; hooks_run("list_post_extra_columns", extra_column) %>
<%= raw extra_column[:content] %>
<%= f.the_updated_at %> |
<% if f.published? %>
<% if f.slug.to_s.translations.present? %>
<% else %>
<% end %>
<% end %>
<% if f.trash? %>
<%= link_to raw(''), {action: :restore, post_id: f.id, s: params[:s]}, class: "btn btn-success btn-xs", title: "#{t('camaleon_cms.admin.button.restore')}" if can? :update, f %>
<%= link_to raw(''), {action: :destroy, id: f.id, s: params[:s]},
method: :delete, data: {confirm: t('camaleon_cms.admin.message.delete_item')}, class: "btn btn-danger btn-xs cama_ajax_request", title: "#{t('camaleon_cms.admin.button.delete_complete', default: 'Delete completely')}" if can? :destroy, f %>
<% elsif f.draft? %>
<%#= link_to raw(''), {action: :edit, id: f.id, recover_draft: 'true' }, class: "btn btn-success btn-xs", title: "#{t('camaleon_cms.admin.button.recover')}" if can? :update, f %>
<%= link_to raw(''), {action: :edit, id: f.id}, class: "btn btn-default btn-xs cama_ajax_request", title: "#{t('camaleon_cms.admin.button.edit')}" if can? :update, f %>
<%= link_to raw(''), {action: :trash, post_id: f.id, s: params[:s]},
data: {confirm: t('camaleon_cms.admin.message.delete')}, class: "btn btn-danger btn-xs cama_ajax_request", title: "#{t('camaleon_cms.admin.button.move_trash')}" if can? :destroy, f %>
<% else %>
<%= link_to raw(''), {action: :edit, id: f.id}, class: "btn btn-default btn-xs cama_ajax_request", title: "#{t('camaleon_cms.admin.button.edit')}" if can? :update, f %>
<%= link_to raw(''), {action: :trash, post_id: f.id, s: params[:s]},
data: {confirm: t('camaleon_cms.admin.message.delete')}, class: "btn btn-danger btn-xs cama_ajax_request", title: "#{t('camaleon_cms.admin.button.move_trash')}" if can? :destroy, f %>
<% end %>
|
<% end %>