Clean up rating partials
This commit is contained in:
parent
73c5c3c97a
commit
9e10678542
10 changed files with 131 additions and 92 deletions
12
app/views/admin/events/_datatable_row_rating.haml
Normal file
12
app/views/admin/events/_datatable_row_rating.haml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
- if show_votes
|
||||
%div{ data: { toggle: 'tooltip' }, title: rating_tooltip(event, max_rating) }<
|
||||
= rating_stars(event.average_rating, max_rating, avgrate: true)
|
||||
|
||||
.clearfix
|
||||
- if event.voted?(current_user)
|
||||
%span.label.label-success
|
||||
You voted:
|
||||
= rating_fraction(event.user_rating(current_user), max_rating)
|
||||
- else
|
||||
%span.label.label-danger
|
||||
Not rated
|
||||
Loading…
Add table
Add a link
Reference in a new issue