Skip to content
Snippets Groups Projects
Commit 5665f43c authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #787

parent 14e95fe6
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,10 @@
& > .treeview__children
display: none
&--draft
.page-title
opacity: 0.5
&--opened
& > .treeview__label
& > a .close_btn,
......
<% pages.each do |page| %>
<li class="treeview__element js-treeview-element <%= 'treeview__element--empty' unless page.has_children? %>" data-id="<%= page.id %>" data-parent="<%= page.parent_id %>">
<li class="treeview__element js-treeview-element <%= 'treeview__element--draft' unless page.published %> <%= 'treeview__element--empty' unless page.has_children? %>" data-id="<%= page.id %>" data-parent="<%= page.parent_id %>">
<div class="d-flex align-items-center treeview__label border-bottom p-1">
<%= link_to children_admin_communication_website_page_path(website_id: page.website.id, id: page.id),
class: 'js-treeview-openzone d-inline-block p-2 ps-0', style: 'width: 22px', remote: true do %>
......@@ -14,7 +14,7 @@
<% end %>
<%= link_to page,
admin_communication_website_page_path(website_id: page.website.id, id: page.id),
class: "#{'draft' unless page.published?}" %>
class: "page-title" %>
<% unless page.is_home? %>
<span class="move_btn py-2 ps-2"><i class="fas fa-sort"></i></span>
<% end %>
......
......@@ -22,7 +22,7 @@
</thead>
<tbody>
<% posts.each do |post| %>
<tr>
<tr <% unless post.published? %>class="draft"<% end %>>
<% if selectable %>
<td class="ps-0">
<%= check_box_tag "ids[]", post.id, false, data: { batch_selectable_role: "select-single" } %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment