Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/education/diploma/localization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def dependencies
end

def git_path_relative
"diplomas/#{slug}/_index.html"
"diplomas/#{slug}.html"
end

def template_static
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion app/views/admin/education/programs/static.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Comment thread
pabois marked this conversation as resolved.
<% hugo = @l10n.diploma.hugo(@website) %>
<%= render 'admin/application/static/hugo/single', hugo: hugo, depth: 1 %>
<% end %>
<%= osuny_static_text 'duration', @l10n.duration %>
teachers:
<%
Expand Down
Loading