From 1a7a3e3d270a47aa8485d7067425d59a715b830e Mon Sep 17 00:00:00 2001
From: Myriam Delaruelle <myriam.delaruelle@univ-lorraine.fr>
Date: Thu, 29 Jun 2023 15:01:03 +0200
Subject: [PATCH] fix css + plugin name

---
 lang/en/format_iena.php |  2 +-
 lang/fr/format_iena.php |  2 +-
 styles.css              | 11 ++++++-----
 suivi_unit.php          |  2 +-
 4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/lang/en/format_iena.php b/lang/en/format_iena.php
index b62f177..ee7a346 100644
--- a/lang/en/format_iena.php
+++ b/lang/en/format_iena.php
@@ -24,7 +24,7 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-$string['pluginname'] = 'Blended learning format';
+$string['pluginname'] = 'Course format with advanced activity tracking';
 $string['currentsection'] = 'The section';
 $string['editsection'] = 'Edit section';
 $string['deletesection'] = 'Delete section';
diff --git a/lang/fr/format_iena.php b/lang/fr/format_iena.php
index e174d32..3ceab7c 100644
--- a/lang/fr/format_iena.php
+++ b/lang/fr/format_iena.php
@@ -24,7 +24,7 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-$string['pluginname'] = 'Format enseignement hybride';
+$string['pluginname'] = 'Format de cours avec suivi avancé des activités';
 $string['currentsection'] = 'La section';
 $string['editsection'] = 'Modifier section';
 $string['deletesection'] = 'Supprimer section';
diff --git a/styles.css b/styles.css
index 4623505..d4b5811 100644
--- a/styles.css
+++ b/styles.css
@@ -705,15 +705,15 @@ th.th-rotate {
 th.th-rotate > div {
 	transform: 
 	/* Magic Numbers */
-	translate(18px, 53px)
+	/*translate(18px, 53px)*/
+    translate(18px, 74px)
 	/* 45 is really 360 - 45 */
 	rotate(315deg);
 	width: 30px;
 }
 th.th-rotate > div > span {
 	border-bottom: 1px solid #ccc;
-	padding: 5px 10px;
-	padding-bottom: 2px;
+	padding: 0px 3px;
     width: 180px;
     display: block;
 
@@ -748,7 +748,7 @@ th.th-rotate > div > span {
 
 
 .state-1 span.icon-progress::after{
-	content: "\f1db";
+	content: "\f10c";
 	font-family: FontAwesome; width: 100%; display: inline-block;text-align: center; 
 	color: white;
 	font-size: 130%;
@@ -767,7 +767,7 @@ th.th-rotate > div > span {
     
 }
 .state-3 span.icon-progress::after{
-	content: "\f1db";
+	content: "\f05c";
 	font-family: FontAwesome; width: 100%; display: inline-block; text-align: center;
 	color: white;
 	font-size: 130%;
@@ -799,6 +799,7 @@ th.th-rotate > div > span {
 .stud_perc {
 	min-width: 45px;
 	display: inline-block;
+    text-align: right;
 }
 
 #table-body td { 
diff --git a/suivi_unit.php b/suivi_unit.php
index 08f25e7..befe60c 100644
--- a/suivi_unit.php
+++ b/suivi_unit.php
@@ -142,7 +142,7 @@ function get_activities($completion, $activesectionid) {
         $module->id = $activity->id;
         $module->name = $activity->name;
         $displayname = format_string($activity->name, true, array('context' => $activity->context));
-        $module->displayname = strlen($displayname) > 20 ? mb_substr($displayname, 0, 19, 'UTF-8').'…' : $displayname;
+        $module->displayname = strlen($displayname) > 30 ? mb_substr($displayname, 0, 29, 'UTF-8').'…' : $displayname;
         $module->section = $activity->section;
         $modules[] = $module;
         if ($activity->section == $activesectionid || $activesectionid == 0 ) {
-- 
GitLab