mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Removed Voted? column and added information to Rating column.
This commit is contained in:
parent
49b38da188
commit
4af7eef954
1 changed files with 6 additions and 13 deletions
|
|
@ -34,8 +34,6 @@
|
|||
%b Difficulty
|
||||
%th
|
||||
%b State
|
||||
%th
|
||||
%b Voted?
|
||||
- @events.each do |event|
|
||||
%tr
|
||||
%td
|
||||
|
|
@ -56,6 +54,12 @@
|
|||
= 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
|
||||
Your rating: #{voted.rating}
|
||||
- else
|
||||
Not rated
|
||||
- else
|
||||
0/#{@conference.call_for_paper.rating}
|
||||
%br
|
||||
|
|
@ -149,14 +153,3 @@
|
|||
%span.caret
|
||||
%ul.dropdown-menu{:role=>"menu"}
|
||||
= render 'change_state_dropdown', event: event
|
||||
|
||||
- if event.voted?(event, current_user)
|
||||
- bgcolor = ""
|
||||
- else
|
||||
- bgcolor = "#F7819F"
|
||||
%td{:style=>"background-color: #{bgcolor}"}
|
||||
- if event.voted?(event, current_user)
|
||||
Yes
|
||||
- else
|
||||
Not yet
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue