show voting options only if rating is enabled (>0)

This commit is contained in:
Stella 2013-12-28 16:20:00 +02:00
parent 28b8b58030
commit 8ca2e53430
2 changed files with 4 additions and 2 deletions

View file

@ -142,7 +142,7 @@
%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!"
- if @conference.call_for_papers.rating
- if @conference.call_for_papers.rating > 0
.row-fluid
= link_to "Votes (#{@event.voters.length})", "#", :id => "votes-link"
#votes-div