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

Fix #787

parent f6fe01a5
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,9 @@
display: none
&--draft
.page-title
opacity: 0.5
> .treeview__label
> .leaf-title
opacity: 0.5
&--opened
& > .treeview__label
......
......@@ -14,7 +14,7 @@
<% end %>
<%= link_to page,
admin_communication_website_page_path(website_id: page.website.id, id: page.id),
class: "page-title" %>
class: "leaf-title" %>
<% unless page.is_home? %>
<span class="move_btn py-2 ps-2"><i class="fas fa-sort"></i></span>
<% end %>
......
<% programs.each do |program| %>
<li class="treeview__element js-treeview-element <%= 'treeview__element--empty' unless program.has_children? %>" data-id="<%= program.id %>" data-parent="<%= program.parent_id %>">
<li class="treeview__element js-treeview-element <%= 'treeview__element--draft' unless program.published %> <%= 'treeview__element--empty' unless program.has_children? %>" data-id="<%= program.id %>" data-parent="<%= program.parent_id %>">
<div class="d-flex align-items-center treeview__label border-bottom p-1">
<%= link_to children_admin_education_program_path(id: program.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 program,
admin_education_program_path(id: program.id),
class: "#{'draft' unless program.published?}" %>
class: 'leaf-title' %>
<span class="move_btn py-2 ps-2"><i class="fas fa-sort"></i></span>
<%= link_to children_admin_education_program_path(id: program.id),
class: 'js-treeview-openzone small ps-2', remote: true do %>
......
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