File tree Expand file tree Collapse file tree
styles/prosilver/template Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -242,7 +242,8 @@ public function show_idea($event)
242242 'S_CAN_VOTE ' => $ can_vote ,
243243 'S_CAN_VOTE_UP ' => $ can_vote && !$ s_voted_up ,
244244 'S_CAN_VOTE_DOWN ' => $ can_vote && !$ s_voted_down ,
245- 'S_VOTED ' => $ s_voted_up || $ s_voted_down ,
245+ 'S_VOTED_UP ' => $ s_voted_up ,
246+ 'S_VOTED_DOWN ' => $ s_voted_down ,
246247
247248 'U_CHANGE_STATUS ' => $ this ->link_helper ->get_idea_link ($ idea ['idea_id ' ], 'status ' , true ),
248249 'U_EDIT_DUPLICATE ' => $ this ->link_helper ->get_idea_link ($ idea ['idea_id ' ], 'duplicate ' , true ),
Original file line number Diff line number Diff line change 1515 < dt class ="idealabel "> {{ lang('RATING') ~ lang('COLON') }}</ dt >
1616 < dd >
1717 < div class ="rating ">
18- < a {% if S_CAN_VOTE %}href ="{{ U_IDEA_VOTE }} "{% endif %} class ="minivote vote-up{{ not S_CAN_VOTE_UP ? ' vote-disabled' }} " title ="{{ lang('VOTE_UP') }} " data-l-err ="{{ lang('ERROR') }} " data-l-msg ="{{ lang('VOTE_ERROR') ~ lang('COLON') }} "> < i class ="icon fa-check-circle user-voted{{ not S_VOTED or S_CAN_VOTE_UP ? ' hidden' }} " aria-hidden ="true "> </ i > < i class ="icon fa-thumbs-up "> </ i > < span class ="vote-count "> {{ IDEA_VOTES_UP }}</ span > </ a >
19- < a {% if S_CAN_VOTE %}href ="{{ U_IDEA_VOTE }} "{% endif %} class ="minivote vote-down{{ not S_CAN_VOTE_DOWN ? ' vote-disabled' }} " title ="{{ lang('VOTE_DOWN') }} " data-l-err ="{{ lang('ERROR') }} " data-l-msg ="{{ lang('VOTE_ERROR') ~ lang('COLON') }} "> < i class ="icon fa-check-circle user-voted{{ not S_VOTED or S_CAN_VOTE_DOWN ? ' hidden' }} " aria-hidden ="true "> </ i > < i class ="icon fa-thumbs-down "> </ i > < span class ="vote-count "> {{ IDEA_VOTES_DOWN }}</ span > </ a >
18+ < a {% if S_CAN_VOTE %}href ="{{ U_IDEA_VOTE }} "{% endif %} class ="minivote vote-up{{ not S_CAN_VOTE_UP ? ' vote-disabled' }} " title ="{{ lang('VOTE_UP') }} " data-l-err ="{{ lang('ERROR') }} " data-l-msg ="{{ lang('VOTE_ERROR') ~ lang('COLON') }} "> < i class ="icon fa-check-circle user-voted{{ not S_VOTED_UP ? ' hidden' }} " aria-hidden ="true "> </ i > < i class ="icon fa-thumbs-up "> </ i > < span class ="vote-count "> {{ IDEA_VOTES_UP }}</ span > </ a >
19+ < a {% if S_CAN_VOTE %}href ="{{ U_IDEA_VOTE }} "{% endif %} class ="minivote vote-down{{ not S_CAN_VOTE_DOWN ? ' vote-disabled' }} " title ="{{ lang('VOTE_DOWN') }} " data-l-err ="{{ lang('ERROR') }} " data-l-msg ="{{ lang('VOTE_ERROR') ~ lang('COLON') }} "> < i class ="icon fa-check-circle user-voted{{ not S_VOTED_DOWN ? ' hidden' }} " aria-hidden ="true "> </ i > < i class ="icon fa-thumbs-down "> </ i > < span class ="vote-count "> {{ IDEA_VOTES_DOWN }}</ span > </ a >
2020 < a href ="# " class ="votes bg3 " data-l-msg ="{{ lang('CLICK_TO_VIEW') }} "> {{ lang('TOTAL_POINTS', IDEA_POINTS) }} {{ IDEA_VOTES ? lang('CLICK_TO_VIEW') }}</ a > < span class ="successvoted bg3 " data-l-err ="{{ lang('VOTE_FAIL') }} "> </ span >
2121 </ div >
2222 < div class ="clear "> </ div >
3939 </ span >
4040 </ li >
4141 {% if S_CAN_VOTE %}
42- < li id ="vote-remove "{% if S_VOTED == false %} style =" display:none; "{% endif %} >
42+ < li id ="vote-remove "{% if not S_VOTED_UP and not S_VOTED_DOWN %} class =" hidden "{% endif %} >
4343 < i class ="fa fa-fw fa-times "> </ i > < a href ="{{ U_REMOVE_VOTE }} " class ="removevote " data-l-err ="{{ lang('ERROR') }} " data-l-msg ="{{ lang('VOTE_ERROR') ~ lang('COLON') }} "> {{ lang('REMOVE_VOTE') }}</ a >
4444 </ li >
4545 {% endif %}
You can’t perform that action at this time.
0 commit comments