From 0db59e1869fa8bde7f4438db04cf0e0a725c6f17 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Mon, 16 May 2022 16:17:42 +0200
Subject: [PATCH] Fix level

---
 app/views/admin/education/diplomas/static.html.erb | 4 ++++
 app/views/admin/education/programs/static.html.erb | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/app/views/admin/education/diplomas/static.html.erb b/app/views/admin/education/diplomas/static.html.erb
index e0ca041da..5f0dadeff 100644
--- a/app/views/admin/education/diplomas/static.html.erb
+++ b/app/views/admin/education/diplomas/static.html.erb
@@ -3,4 +3,8 @@ title: >
   <%= @about.name %>
 short_name: >
   <%= @about.short_name %>
+level: <%= @about.level_i18n %>
+ects: <%= @about.ects %>
+duration: >
+  <%= prepare_text_for_static @about.duration %>
 ---
diff --git a/app/views/admin/education/programs/static.html.erb b/app/views/admin/education/programs/static.html.erb
index 1d9160ea0..caa4fcc18 100644
--- a/app/views/admin/education/programs/static.html.erb
+++ b/app/views/admin/education/programs/static.html.erb
@@ -42,14 +42,11 @@ roles:
 roles: []
 <% end %>
 continuing: <%= @about.continuing %>
-level: <%= @about.diploma&.level %>
-ects: <%= @about.diploma&.ects %>
 <%
 [
   :accessibility,
   :contacts,
   :content,
-  :duration,
   :evaluation,
   :objectives,
   :opportunities,
-- 
GitLab