Changes based on comments

This commit is contained in:
differentreality 2013-09-02 16:15:02 +03:00
parent aaa77bb893
commit a0dc62b125
2 changed files with 5 additions and 2 deletions

View file

@ -60,8 +60,7 @@ $(function() {
$(".comment-reply").hide();
$(".user-details-popover").popover();
$("#comments-div").hide();
$("#votes-div").hide();
$("#votes-link").click(function(){
$("#votes-div").toggle();
return false;

View file

@ -99,6 +99,8 @@
%b ID
%th
%b Title
%th
%b Rating
%th
%b Submitter
%th
@ -115,11 +117,13 @@
= event.id
%td
=link_to event.title, admin_conference_event_path(@conference.short_title, event)
%td
- if @conference.call_for_papers.rating
- if event.average_rating.to_f > 0
Rating: (#{event.average_rating}/#{@conference.call_for_papers.rating})
- else
Rating: (0/#{@conference.call_for_papers.rating})
%br
- @conference.call_for_papers.rating.times do |counter|
- if event.average_rating.to_f.round == counter+1