From a0dc62b1257a718c1f4440d4124a807423471f08 Mon Sep 17 00:00:00 2001 From: differentreality Date: Mon, 2 Sep 2013 16:15:02 +0300 Subject: [PATCH] Changes based on comments --- app/assets/javascripts/osem.js | 3 +-- app/views/admin/events/index.html.haml | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/osem.js b/app/assets/javascripts/osem.js index 9cd557c2..dbae93ac 100644 --- a/app/assets/javascripts/osem.js +++ b/app/assets/javascripts/osem.js @@ -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; diff --git a/app/views/admin/events/index.html.haml b/app/views/admin/events/index.html.haml index ba10b678..c37d3906 100644 --- a/app/views/admin/events/index.html.haml +++ b/app/views/admin/events/index.html.haml @@ -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