Wrapped voted? notification in label to promote visibility.

This commit is contained in:
William Hale 2015-08-11 06:23:41 -07:00
parent 3505ab062b
commit a0ffab098b

View file

@ -57,8 +57,10 @@
%br %br
- voted = event.voted?(event, current_user) - voted = event.voted?(event, current_user)
- if voted - if voted
%span.label.label-success
Your rating: #{voted.rating} Your rating: #{voted.rating}
- else - else
%span.label.label-danger
Not rated Not rated
- else - else
0/#{@conference.call_for_paper.rating} 0/#{@conference.call_for_paper.rating}