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,10 +142,11 @@
%td
= 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!"
.row-fluid
= link_to "Votes (#{@event.voters.length})", "#", :id => "votes-link"
#votes-div
= render :partial => 'voting'
- if @conference.call_for_papers.rating
.row-fluid
= link_to "Votes (#{@event.voters.length})", "#", :id => "votes-link"
#votes-div
= render :partial => 'voting'
.row-fluid
= link_to "Comments (#{@comment_count})", "#", :id => "event-comment-link"
#comments-div