Changes based on comments
This commit is contained in:
parent
aaa77bb893
commit
a0dc62b125
2 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue