From cc8aaf83273471911b3698ac1f7cef35cf7cf727 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Wed, 27 Jul 2022 15:13:53 +0200
Subject: [PATCH] Fix #494

---
 .../admin/university/people/static.html.erb   | 20 ++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/app/views/admin/university/people/static.html.erb b/app/views/admin/university/people/static.html.erb
index a4f84fc04..24d2039ec 100644
--- a/app/views/admin/university/people/static.html.erb
+++ b/app/views/admin/university/people/static.html.erb
@@ -36,16 +36,30 @@ roles:
 <% if @about.administrator.for_website?(@website) %>
   - administrator
 <% end %>
+<% if @about.involvements_as_teacher.any? %>
+teachings:
+<% @about.involvements_as_teacher.each do |involvement|     
+    target = involvement.target
+    %>
+  - description: >
+      <%= involvement.description %>
+    program: 
+      title: >
+        <%= target.to_s %>
+      url: >
+        <%= target.path_in_website(@website) if target.respond_to? :path_in_website %>
+<% end %>
+<% end %>
 <% if @about.roles_as_administrator.any? %>
-involvements_as_administrator:
+administrative_missions:
 <% @about.roles_as_administrator.each do |role| 
     target = role.target %>
-  - title: >
+  - description: >
       <%= role.to_s %>
     target: 
       title: >
         <%= target.to_s %>
-      path: >
+      url: >
         <%= target.path_in_website(@website) if target.respond_to? :path_in_website %>
 <% end %>
 <% end %>
-- 
GitLab