Removed Voted? column and added information to Rating column.

This commit is contained in:
William Hale 2015-08-11 00:34:22 -07:00
parent 49b38da188
commit 4af7eef954

View file

@ -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