From a0cfb18ad8b462d06b41c5726660e98abccaab66 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Wed, 18 Dec 2024 15:12:44 +0100
Subject: [PATCH] program explicit children in static

---
 app/views/admin/education/programs/static.html.erb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app/views/admin/education/programs/static.html.erb b/app/views/admin/education/programs/static.html.erb
index cdcd3fd81..fb1cbb2ce 100644
--- a/app/views/admin/education/programs/static.html.erb
+++ b/app/views/admin/education/programs/static.html.erb
@@ -42,6 +42,12 @@ parent:
   slug: "<%= hugo.slug %>"
   file: "<%= hugo.file %>"
 <% end %>
+<% if @l10n.children.any? %>
+<%= render 'admin/application/static/hugo/collection',
+            key: :children,
+            collection: program.children.ordered(language),
+            language: language %>
+<% end %>
 <%= render 'admin/application/l10n/static', about: @l10n %>
 <%= render 'admin/application/images/featured/static', about: @l10n %>
 <%= render 'admin/application/images/shared/static', about: @l10n %>
-- 
GitLab