<% if can?(:edit_content, page) %>
<% if page.locked? %>
" placement="bottom-start">
<% else %>
<% end %>
<% else %>
" placement="bottom-start">
<% end %>
|
<%= link_to_if(
can?(:edit_content, page),
page.name,
alchemy.edit_admin_page_path(page),
title: Alchemy.t(:edit_page),
) { content_tag(:span, page.name) } -%>
|
<%= page.url_path %>
|
<%= Alchemy.t(page.page_layout, scope: "page_layout_names", default: page.page_layout.to_s.humanize) %>
|
<% page.tag_list.each do |tag| %>
<%= content_tag(:span, tag, class: "tag") %>
<% end %>
|
<%= l(page.updated_at, format: :"alchemy.default") %>
|
<% if page.locked? %>
<%= render_icon(:edit, size: "1x") %>
<%= page.status_title(:locked) %>
<% end %>
<% if page.restricted? %>
<%= render_icon(:lock, size: "1x") %>
<%= page.status_title(:restricted) %>
<% end %>
<% unless page.public? %>
<%= render_icon("cloud-off", size: "1x") %>
<%= page.status_title(:public) %>
<% end %>
|
<% if can?(:info, page) %>
<%= link_to_dialog(
render_icon('info-circle'),
alchemy.info_admin_page_path(page),
{
title: Alchemy.t(:page_infos),
size: '520x290'
},
class: "icon_button"
) %>
<% end %>
<% if can?(:configure, page) %>
<%= link_to_dialog(
render_icon(:cog),
alchemy.configure_admin_page_path(page),
{
title: Alchemy.t(:edit_page_properties),
size: '450x680'
},
class: "icon_button"
) -%>
<% end %>
<% if can?(:copy, page) %>
<%= link_to(
render_icon(:copy),
alchemy.insert_admin_clipboard_path(
remarkable_type: :pages,
remarkable_id: page.id,
),
remote: true,
method: :post,
class: "icon_button"
) %>
<% end %>
<% if can?(:destroy, page) %>
<%= link_to_confirm_dialog(
render_icon(:minus),
Alchemy.t(:confirm_to_delete_page),
alchemy.admin_page_path(page),
class: "icon_button"
) -%>
<% end %>
|