diff --git a/app/models/education/diploma/localization.rb b/app/models/education/diploma/localization.rb index 7cfa05bd9f..a172fdfb7f 100644 --- a/app/models/education/diploma/localization.rb +++ b/app/models/education/diploma/localization.rb @@ -63,7 +63,7 @@ def dependencies end def git_path_relative - "diplomas/#{slug}/_index.html" + "diplomas/#{slug}.html" end def template_static diff --git a/app/views/admin/communication/websites/configs/default_languages/static.html.erb b/app/views/admin/communication/websites/configs/default_languages/static.html.erb index 8d9d49cb2e..a34aa3a9a7 100644 --- a/app/views/admin/communication/websites/configs/default_languages/static.html.erb +++ b/app/views/admin/communication/websites/configs/default_languages/static.html.erb @@ -19,7 +19,6 @@ localizations.each do |l10n| taxonomies: administrator: administrators author: authors - diploma: diplomas events_category: events_categories jobs_category: jobs_categories location: locations diff --git a/app/views/admin/education/programs/static.html.erb b/app/views/admin/education/programs/static.html.erb index c3c2791490..cf7c7a85cf 100644 --- a/app/views/admin/education/programs/static.html.erb +++ b/app/views/admin/education/programs/static.html.erb @@ -90,7 +90,11 @@ information: <%= osuny_static_html 'initial', @l10n.pricing_initial, depth: 3 %> <%= osuny_static_html 'continuing', @l10n.pricing_continuing, depth: 3 %> <%= osuny_static_html 'apprenticeship', @l10n.pricing_apprenticeship, depth: 3 %> -diplomas: "<%= @l10n.diploma&.slug %>" +diploma: +<% if @l10n.diploma %> +<% hugo = @l10n.diploma.hugo(@website) %> +<%= render 'admin/application/static/hugo/single', hugo: hugo, depth: 1 %> +<% end %> <%= osuny_static_text 'duration', @l10n.duration %> teachers: <%