check if voting is enabled by organizers

This commit is contained in:
differentreality 2013-08-16 13:03:31 +03:00
parent 834362491e
commit 609b3d45fe
2 changed files with 16 additions and 14 deletions

View file

@ -142,7 +142,8 @@
%td %td
= link_to "Delete", conference_proposal_event_attachment_path(@conference.short_title, @event.id, a.id), = link_to "Delete", conference_proposal_event_attachment_path(@conference.short_title, @event.id, a.id),
:method => :delete, :confirm => "Are you sure you want to delete this attachment? It's permanant!" :method => :delete, :confirm => "Are you sure you want to delete this attachment? It's permanant!"
.row-fluid - if @conference.call_for_papers.rating
.row-fluid
= link_to "Votes (#{@event.voters.length})", "#", :id => "votes-link" = link_to "Votes (#{@event.voters.length})", "#", :id => "votes-link"
#votes-div #votes-div
= render :partial => 'voting' = render :partial => 'voting'

View file

@ -115,6 +115,7 @@
= 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)
- 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