From c427fe94dae41a6c2899d426cfd0945f93347b56 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 7 Nov 2016 18:29:38 -0800 Subject: cleanup and re-organise the voting and attendance buttons --- Zotlabs/Lib/ThreadItem.php | 4 ++++ view/css/conversation.css | 4 ++++ view/tpl/conv_item.tpl | 51 +++++++++++++++++++++++++++++----------------- 3 files changed, 40 insertions(+), 19 deletions(-) diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index a3e871810..48b50b295 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -355,6 +355,10 @@ class ThreadItem { 'unverified' => $unverified, 'forged' => $forged, 'location' => $location, + 'attend_label' => t('Attend'), + 'attend_title' => t('Attendance Options'), + 'vote_label' => t('Vote'), + 'vote_title' => t('Voting Options'), 'indent' => $indent, 'owner_url' => $this->get_owner_url(), 'owner_photo' => $this->get_owner_photo(), diff --git a/view/css/conversation.css b/view/css/conversation.css index 9272ed3f6..0b6674b15 100644 --- a/view/css/conversation.css +++ b/view/css/conversation.css @@ -203,6 +203,10 @@ a.wall-item-name-link { filter:alpha(opacity=100); } +.item-act-list { + width: 20px; +} + .shared_header { margin-bottom: 20px; } diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 79c22b4c1..4f59dccec 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -103,27 +103,40 @@ {{/if}} {{if $item.isevent}} - - - + {{/if}} - {{if $item.canvote}} - - - + {{/if}}