24 lines
711 B
Text
24 lines
711 B
Text
|
|
%h3
|
||
|
|
Tickets (#{@tickets.length if @tickets}#{0 unless @tickets})
|
||
|
|
- if @supporter_levels.count > 0
|
||
|
|
%table.table.table-bordered.table-striped
|
||
|
|
%thead
|
||
|
|
%th Support Level
|
||
|
|
%th #
|
||
|
|
%th %
|
||
|
|
- @supporter_levels.each do |level|
|
||
|
|
- reg_support = reg_support(level)
|
||
|
|
- if reg_support.count > 0
|
||
|
|
%tr
|
||
|
|
%td= level.title
|
||
|
|
%td
|
||
|
|
= reg_support.count
|
||
|
|
%td
|
||
|
|
- if @registered and @registered > 0
|
||
|
|
= "#{reg_support.count * 100 / @registered}% of registered"
|
||
|
|
- if @attendees and @attendees > 0
|
||
|
|
%br
|
||
|
|
= "#{reg_support.count * 100 / @attendees}% of attendees"
|
||
|
|
- else
|
||
|
|
%p
|
||
|
|
No tickets sold yet
|