mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 12:14:03 +00:00
Merge pull request #705 from altsalt/master
added Voted? column to admin/events view
This commit is contained in:
commit
2e692f7ea5
1 changed files with 8 additions and 0 deletions
|
|
@ -54,6 +54,14 @@
|
|||
= javascript_tag "$('label[avgrate=true]').prevAll().andSelf().addClass('bright');"
|
||||
- else
|
||||
= label_tag "label_rating", "", :class => "avgrating"
|
||||
%br
|
||||
- voted = event.voted?(event, current_user)
|
||||
- if voted
|
||||
%span.label.label-success
|
||||
Your rating: #{voted.rating}
|
||||
- else
|
||||
%span.label.label-danger
|
||||
Not rated
|
||||
- else
|
||||
0/#{@conference.call_for_paper.rating}
|
||||
%br
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue