show voting options only if rating is enabled (>0)
This commit is contained in:
parent
28b8b58030
commit
8ca2e53430
2 changed files with 4 additions and 2 deletions
|
|
@ -142,7 +142,7 @@
|
||||||
%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!"
|
||||||
- if @conference.call_for_papers.rating
|
- if @conference.call_for_papers.rating > 0
|
||||||
.row-fluid
|
.row-fluid
|
||||||
= link_to "Votes (#{@event.voters.length})", "#", :id => "votes-link"
|
= link_to "Votes (#{@event.voters.length})", "#", :id => "votes-link"
|
||||||
#votes-div
|
#votes-div
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
%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
|
%td
|
||||||
- if @conference.call_for_papers.rating
|
- if @conference.call_for_papers.rating != 0
|
||||||
- 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
|
||||||
|
|
@ -45,6 +45,8 @@
|
||||||
= javascript_tag "$('label[avgrate=true]').prevAll().andSelf().addClass('bright');"
|
= javascript_tag "$('label[avgrate=true]').prevAll().andSelf().addClass('bright');"
|
||||||
- else
|
- else
|
||||||
= label_tag "label_rating", "", :class => "avgrating"
|
= label_tag "label_rating", "", :class => "avgrating"
|
||||||
|
- else
|
||||||
|
= link_to "(enable voting)", admin_conference_cfp_info_path(@conference.short_title)
|
||||||
|
|
||||||
- if event.submitter.registrations.count < 1
|
- if event.submitter.registrations.count < 1
|
||||||
- bgcolor="#F7819F"
|
- bgcolor="#F7819F"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue