From 67dc6b0aac07924abe5dcab04b1d083f6b573bd9 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 66bd349c39..b5cb7368f3 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1467,9 +1467,15 @@ blockquote.shared_content { 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 47430cf2bb..1b7ce13ab2 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -285,7 +285,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}} @@ -293,7 +293,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}} @@ -312,7 +312,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}} @@ -321,9 +321,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}} -- 2.39.5