Skip to content

Commit

Permalink
Merge pull request #91 from takahashim/fix-booth-assignments
Browse files Browse the repository at this point in the history
Booth Assignment: show number of requests from accepted and unaccepted sponsors
  • Loading branch information
sorah authored Jan 16, 2025
2 parents 4a6eedc + 8a52cf0 commit cfc494e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/controllers/admin/booth_assignments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ class Admin::BoothAssignmentsController < ::Admin::ApplicationController
before_action :set_conference

def show
@not_withdrawn_sponsorships = @conference.sponsorships
.includes(:plan)
.not_withdrawn
.where(booth_requested: true)
.order('plans.booth_size desc, sponsorships.name asc')
@sponsorships = @conference.sponsorships
.includes(:plan)
.active
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/booth_assignments/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

%section
%p
Booth requested: #{@sponsorships.size} sponsors (capacity #{@sponsorships.map(&:booth_size).compact.inject(:+)})
Booth requested: #{@sponsorships.size} sponsors (capacity #{@sponsorships.map(&:booth_size).compact.inject(:+)}) (including non accepted sponsors: #{@not_withdrawn_sponsorships.size})
%br
Booth assigned: #{@exhibitors.size} sponsors (capacity #{@exhibitors.map(&:assigned_booth_size).compact.inject(:+)})

Expand Down

0 comments on commit cfc494e

Please sign in to comment.