fix #3413 - fix public view upvote

stable
Juanfran 2015-10-30 10:22:30 +01:00
parent 0a6cbf1140
commit f29de044d7
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,5 @@
a( //- Registered user button
a.vote-inner(
href="" href=""
title="{{ 'COMMON.VOTE_BUTTON.BUTTON_TITLE' | translate }}" title="{{ 'COMMON.VOTE_BUTTON.BUTTON_TITLE' | translate }}"
ng-if="::vm.user" ng-if="::vm.user"
@ -13,3 +14,12 @@ a(
title="{{ 'COMMON.VOTE_BUTTON.COUNTER_TITLE'|translate:{total:vm.item.total_voters||0}:'messageformat' }}", title="{{ 'COMMON.VOTE_BUTTON.COUNTER_TITLE'|translate:{total:vm.item.total_voters||0}:'messageformat' }}",
tg-loading="vm.loading" tg-loading="vm.loading"
) {{ vm.item.total_voters }} ) {{ vm.item.total_voters }}
//- Anonymous user button
span.vote-inner(ng-if="::!vm.user")
span.track-icon
include ../../../svg/upvote.svg
span.track-button-counter(
title="{{ 'COMMON.VOTE_BUTTON.COUNTER_TITLE'|translate:{total:vm.item.total_voters||0}:'messageformat' }}"
) {{ ::vm.item.total_voters }}

View File

@ -135,12 +135,14 @@
flex-basis: 3rem; flex-basis: 3rem;
justify-content: center; justify-content: center;
margin-right: .3rem; margin-right: .3rem;
a { .vote-inner {
background: $whitish; background: $whitish;
color: $gray-light; color: $gray-light;
display: block; display: block;
padding: 1rem; padding: 1rem;
text-align: center; text-align: center;
}
a {
&:hover { &:hover {
background: darken($whitish, 5%); background: darken($whitish, 5%);
color: $primary-dark; color: $primary-dark;