From 79223b6b3d38bfbfb3a6d9530f6ccc5b7bb096c8 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Feb 2015 19:10:18 -0800 Subject: item voting tools --- view/tpl/conv_item.tpl | 13 +++++++++++++ view/tpl/conv_list.tpl | 12 ++++++++++++ view/tpl/jot-header.tpl | 10 ++++++++++ view/tpl/jot.tpl | 6 ++++++ 4 files changed, 41 insertions(+) (limited to 'view') diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index df20eadbb..a902e5bda 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -76,6 +76,19 @@ {{/if}} + + {{if $item.consensus}} + + + + {{/if}} + diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index ad086ee0a..8d454f1eb 100755 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -78,6 +78,18 @@ {{/if}} + {{if $item.consensus}} + + + + {{/if}} + diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 678d16a71..8daf2ddb7 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -309,6 +309,16 @@ function enableOnUser(){ timer = setTimeout(NavUpdate,1000); } + function toggleVoting() { + if($('#jot-consensus').val() > 0) { + $('#jot-consensus').val(0); + $('#profile-voting').removeClass('icon-check').addClass('icon-check-empty'); + } + else { + $('#jot-consensus').val(1); + $('#profile-voting').removeClass('icon-check-empty').addClass('icon-check'); + } + } function jotClearLocation() { $('#jot-coord').val(''); diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 00ef77d93..f32dba095 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -11,6 +11,7 @@ + {{if $showacl}}{{$acl}}{{/if}} {{$mimeselect}} {{$layoutselect}} @@ -77,6 +78,11 @@ {{/if}} + {{if $feature_voting}} + + {{/if}}
-- cgit v1.2.3