File tree 2 files changed +6
-1
lines changed
views/admin/booth_assignments
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ class Admin::BoothAssignmentsController < ::Admin::ApplicationController
2
2
before_action :set_conference
3
3
4
4
def show
5
+ @not_withdrawn_sponsorships = @conference . sponsorships
6
+ . includes ( :plan )
7
+ . not_withdrawn
8
+ . where ( booth_requested : true )
9
+ . order ( 'plans.booth_size desc, sponsorships.name asc' )
5
10
@sponsorships = @conference . sponsorships
6
11
. includes ( :plan )
7
12
. active
Original file line number Diff line number Diff line change 8
8
9
9
%section
10
10
%p
11
- Booth requested: #{@sponsorships.size} sponsors (capacity #{@sponsorships.map(&:booth_size).compact.inject(:+)})
11
+ Booth requested: #{@sponsorships.size} sponsors (capacity #{@sponsorships.map(&:booth_size).compact.inject(:+)}) (including non accepted sponsors: #{@not_withdrawn_sponsorships.size})
12
12
%br
13
13
Booth assigned: #{@exhibitors.size} sponsors (capacity #{@exhibitors.map(&:assigned_booth_size).compact.inject(:+)})
14
14
You can’t perform that action at this time.
0 commit comments