From 3367ed0017a48731231d7c5a35c44a67440711c9 Mon Sep 17 00:00:00 2001
From: Myriam Delaruelle
 <Myriam Delaruelle@bdn-un-mdelarue.ad.univ-lorraine.fr>
Date: Thu, 7 Oct 2021 11:15:58 +0200
Subject: [PATCH] remove caption for modality+empty course infos

---
 templates/course-header.mustache | 3 ++-
 templates/sections.mustache      | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/templates/course-header.mustache b/templates/course-header.mustache
index 00e6e70..5202db4 100644
--- a/templates/course-header.mustache
+++ b/templates/course-header.mustache
@@ -62,7 +62,7 @@
 	
 	{{/student}}
 
-	
+	{{#summary}}
 	<div class="iena-course-header-bottom" id="" aria-expanded="false">
 		<div id="title-summary-iena">
 			<h3>
@@ -74,6 +74,7 @@
 			<a role="button" href="#" onclick="return false" id="button-collapse" aria-expanded="false" aria-controls="summary-collapse">{{# str }} displayInfos, format_iena {{/ str}}</a>
 		</div>
 	</div>
+	{{/summary}}
 </div>
 
 {{#js}}
diff --git a/templates/sections.mustache b/templates/sections.mustache
index 3c5c342..51fa149 100644
--- a/templates/sections.mustache
+++ b/templates/sections.mustache
@@ -1,10 +1,10 @@
 
 <ul class="iena-editing">
 	<div class="iena-course-header"></div>
-	<div class="iena-caption-sections">
+	<!--<div class="iena-caption-sections">
 		<div class="iena-caption-icons"><span class="iena-icon-presence"></span>{{#str}} in_presence, format_iena {{/str}}</div>
 	 <div class="iena-caption-icons"><span class="iena-icon-distance"></span>{{#str}} not_presence, format_iena {{/str}}</div>
-	</div>
+	</div>-->
 	{{#sections}}
 		{{> format_iena/section}}
 	{{/sections}}
-- 
GitLab