From 37e3a20966c90b25a5c1c880b9369f6f896d5d84 Mon Sep 17 00:00:00 2001
From: Thomas Fradet <t.fradet8@gmail.com>
Date: Wed, 29 May 2019 13:07:28 +0200
Subject: [PATCH] path list css

---
 CHANGELOG.md              | 2 ++
 styles.css                | 9 +++++++++
 view/view_career_unit.php | 4 ++--
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 781fdba..aec5f93 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -92,6 +92,8 @@ Ajout de vérification du droit d'éditer le cours pour les interfaces d'éditio
 
 Sous forme de liste cliquable. 
 
+Ajout d'une apparence de lien sur le titre de la ressource. 
+
 #### Textes
 
 Amélioration des textes sur les pages de liste et d'édition des parcours. 
diff --git a/styles.css b/styles.css
index 8f585f8..4b64581 100644
--- a/styles.css
+++ b/styles.css
@@ -58,6 +58,15 @@
 	display: initial;
 }
 
+.career-module-header {
+	margin-bottom: 0;
+	color: #008196;
+}
+
+.career-module-item:hover .career-module-header {
+	text-decoration: underline;
+}
+
 /* Block itself */
 
 .career-list-group .list-group-item {
diff --git a/view/view_career_unit.php b/view/view_career_unit.php
index ac7a244..c3d2a9b 100644
--- a/view/view_career_unit.php
+++ b/view/view_career_unit.php
@@ -92,9 +92,9 @@ function is_not_empty_string($str) {
 			<div class="list-group" style="margin-top: 1rem;">
 				<?php foreach ($ressources as $value) : ?>
 					<?php if($value->section->id == $section->id) : ?>
-						<a href="<?php echo "$value->link&career=$careerId" ?>" class="list-group-item list-group-item-action flex-column align-items-start">
+						<a href="<?php echo "$value->link&career=$careerId" ?>" class="list-group-item list-group-item-action flex-column align-items-start career-module-item">
 							<div class="d-flex w-100 justify-content-between">
-								<h5 style="margin-bottom: 0;">
+								<h5 class="career-module-header">
 									<?php echo $value->name;?>
 								</h5>
 								<img class="" alt="" src="<?php echo $CFG->wwwroot ?>/theme/image.php/boost/<?php echo $value->type ?>/1/icon>">
-- 
GitLab