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

Fix #2259

parent 1b631ed0
No related branches found
No related tags found
No related merge requests found
......@@ -26,18 +26,22 @@ contact_details:
latitude: <%= location.latitude %>
longitude: <%= location.longitude %>
programs:
<% location.programs.each do |program| %>
- <%= program.path %>
<%
location.programs.each do |program|
program_l10n = program.best_localization_for(language)
%>
- <%= program_l10n.current_permalink_in_website(@website)&.path %>
<% end %>
diplomas:
<%
location.diplomas.each do |diploma|
diploma_l10n = diploma.best_localization_for(language)
programs = location.education_programs.where(diploma: diploma).root.ordered
next if programs.empty?
%>
- name: >-
<%= diploma.to_s %>
path: <%= diploma.slug %>
<%= diploma_l10n.to_s %>
path: <%= diploma_l10n.slug %>
programs:
<%= render 'admin/education/programs/static_list',
diploma: diploma,
......
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