Skip to content
Snippets Groups Projects
Unverified Commit 31871fdc authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Fix #2144 (#2148)

parent 86bead49
No related branches found
No related tags found
No related merge requests found
......@@ -23,14 +23,18 @@ programs:
- <%= program.path %>
<% end %>
diplomas:
<% @about.diplomas.each do |diploma| %>
<%
@about.diplomas.each do |diploma|
programs = @about.education_programs.where(diploma: diploma).root.ordered
next if programs.empty?
%>
- name: >-
<%= diploma.to_s %>
path: <%= diploma.slug %>
programs: <% @programs = @about.education_programs.where(diploma: diploma).root.ordered %>
programs:
<%= render 'admin/education/programs/static_list',
diploma: diploma,
programs: @programs,
programs: programs,
all_programs: @about.programs,
depth: 4 %>
<% end %>
......
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