Changes based on comments
This commit is contained in:
parent
aaa77bb893
commit
a0dc62b125
2 changed files with 5 additions and 2 deletions
|
|
@ -61,7 +61,6 @@ $(function() {
|
||||||
$(".user-details-popover").popover();
|
$(".user-details-popover").popover();
|
||||||
$("#comments-div").hide();
|
$("#comments-div").hide();
|
||||||
|
|
||||||
$("#votes-div").hide();
|
|
||||||
$("#votes-link").click(function(){
|
$("#votes-link").click(function(){
|
||||||
$("#votes-div").toggle();
|
$("#votes-div").toggle();
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,8 @@
|
||||||
%b ID
|
%b ID
|
||||||
%th
|
%th
|
||||||
%b Title
|
%b Title
|
||||||
|
%th
|
||||||
|
%b Rating
|
||||||
%th
|
%th
|
||||||
%b Submitter
|
%b Submitter
|
||||||
%th
|
%th
|
||||||
|
|
@ -115,11 +117,13 @@
|
||||||
= event.id
|
= event.id
|
||||||
%td
|
%td
|
||||||
=link_to event.title, admin_conference_event_path(@conference.short_title, event)
|
=link_to event.title, admin_conference_event_path(@conference.short_title, event)
|
||||||
|
%td
|
||||||
- if @conference.call_for_papers.rating
|
- if @conference.call_for_papers.rating
|
||||||
- if event.average_rating.to_f > 0
|
- if event.average_rating.to_f > 0
|
||||||
Rating: (#{event.average_rating}/#{@conference.call_for_papers.rating})
|
Rating: (#{event.average_rating}/#{@conference.call_for_papers.rating})
|
||||||
- else
|
- else
|
||||||
Rating: (0/#{@conference.call_for_papers.rating})
|
Rating: (0/#{@conference.call_for_papers.rating})
|
||||||
|
%br
|
||||||
|
|
||||||
- @conference.call_for_papers.rating.times do |counter|
|
- @conference.call_for_papers.rating.times do |counter|
|
||||||
- if event.average_rating.to_f.round == counter+1
|
- if event.average_rating.to_f.round == counter+1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue