mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-07 13:33:36 +01:00
unregistered users will see the smile_count if at least someone smiled the answer
This commit is contained in:
parent
be78c449a0
commit
a34972379f
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
||||||
%span.hidden-xs.text-muted
|
%span.hidden-xs.text-muted
|
||||||
- unless user_signed_in?
|
- unless user_signed_in?
|
||||||
%span{id: "ab-smile-count-#{a.id}"}= a.smile_count
|
- if a.smile_count > 0
|
||||||
users smiled this
|
%span{id: "ab-smile-count-#{a.id}"}= a.smile_count
|
||||||
|
users smiled this
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
- if current_user.smiled? a
|
- if current_user.smiled? a
|
||||||
%button.btn.btn-info.btn-sm{type: :button, name: 'ab-smile', 'data-a-id' => a.id, 'data-action' => 'unsmile'}
|
%button.btn.btn-info.btn-sm{type: :button, name: 'ab-smile', 'data-a-id' => a.id, 'data-action' => 'unsmile'}
|
||||||
|
|
Loading…
Reference in a new issue