From bdc7d1b87a2b691781f3a4ad8477965018f59726 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 24 Sep 2016 12:05:14 -0400 Subject: [PATCH] [frio] Add active class to responses current user holds - Add active class when the self attribute is found - Add CSS styling to active response links --- view/theme/frio/css/style.css | 6 ++++++ view/theme/frio/templates/wall_thread.tpl | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 42946b6e1..58af8ffca 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1504,9 +1504,15 @@ code > .hl-main { margin-top: 15px; margin-bottom: 0; } +.wall-item-actions a.active { + font-weight: bold; +} .wall-item-actions a:hover { color: #555; } +.wall-item-actions a.active:hover { + color: $link_color; +} .wall-item-actions-left { display: table-cell; vertical-align: middle; diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 25ad41bc3..f58d4425f 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -287,7 +287,7 @@ as the value of $top_child_total (this is done at the end of this file) {{* Buttons for like and dislike *}} {{if $item.vote}} {{if $item.vote.like}} -  {{$item.vote.like.1}} +  {{$item.vote.like.1}} {{/if}} {{if $item.vote.like AND $item.vote.dislike}} @@ -295,7 +295,7 @@ as the value of $top_child_total (this is done at the end of this file) {{/if}} {{if $item.vote.dislike}} -  {{$item.vote.dislike.1}} +  {{$item.vote.dislike.1}} {{/if}} {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment}} @@ -314,7 +314,7 @@ as the value of $top_child_total (this is done at the end of this file)  •  {{/if}} {{if $item.vote.share}} -  {{$item.vote.share.0}} +  {{$item.vote.share.1}} {{/if}} {{/if}} @@ -323,9 +323,9 @@ as the value of $top_child_total (this is done at the end of this file) {{* Event attendance buttons *}} {{if $item.isevent}}
- {{$item.attend.0}} - {{$item.attend.1}} - {{$item.attend.2}} + {{$item.attend.0}} + {{$item.attend.1}} + {{$item.attend.2}}
{{/if}}