diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/list_recent.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/list_recent.html.twig index 9b8f00e96..2829d8153 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/list_recent.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/list_recent.html.twig @@ -2,13 +2,11 @@ {% for activity in activities | slice(0,5) %} {% set t = activity.type %} - {# - - #} + class="badge-link" title="{{ 'Show the activity'|trans }}"> - {% include '@ChillActivity/Activity/activity-badge-title.html.twig' %} + {% include '@ChillActivity/Activity/activity-badge-title.html.twig' %} + {% endfor %} diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss index 7dc626858..beb3ceb56 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/badge.scss @@ -49,8 +49,6 @@ h2.badge-title { width: 100%; color: $dark; - a & { text-decoration: none; } // ?!? keep it ? - span.title_label { border-radius: 0.35rem 0 0 0.35rem; color: $white; @@ -75,7 +73,7 @@ h2.badge-title { flex-grow: 1; margin: 0 0 0 auto; border-radius: 0 0.35rem 0.35rem 0; - background-color: $light; + background-color: $chill-llight-gray; padding: 0.2em 1em; ul.small_in_title { @@ -83,6 +81,26 @@ h2.badge-title { font-size: 70%; padding-left: 1rem; } + + &:hover { + background-color: $chill-ll-gray; + } + } +} + +/// theses links apply on badge (or other styled elements) as parent tag. +// They don't have button, picto or simple text appearance +a.badge-link { + color: unset; + text-decoration: unset; + & > h2.badge-title { + &:hover { + box-shadow: 0 0 7px 0 $chill-gray; + opacity: 0.8; + } + span.title_action:hover { + //background-color: ; + } } } diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_recent_by_accompanying_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_recent_by_accompanying_period.html.twig index 449564137..224c7413f 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_recent_by_accompanying_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_recent_by_accompanying_period.html.twig @@ -1,11 +1,8 @@
{% for w in works | slice(0,5) %} - {# - - - #} +

@@ -35,6 +32,8 @@

+ +
{% endfor %}
diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index a4f045dc7..e212c61ce 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -334,6 +334,7 @@ crud: add_new: Ajouter une nouvelle action d'accompagnements title_new: Nouvelle action d'accompagnements title_edit: Modifier l'action d'accompagnements + title_link: Voir l'action d'accompagnement social_goal: index: title: Liste des objectifs d'action d'accompagnements