hackathon_manager 0.13.4 → 0.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 206af0094a1b5b93d65868d634fcf363be9b1a04a47325db43fa116fcc0f1223
4
- data.tar.gz: d64945622dbed549e05d0a6b46388c81dafd0033d41abd40e11202f5a47ce93d
3
+ metadata.gz: 10df4760297b3fcc6238b3fd35a83c159b947c21eb14101c54d280d4a854cdda
4
+ data.tar.gz: 4c78b6cf6a3ebf95a1173158177684802fc66ae7701b4e7cae90550b2f668d1e
5
5
  SHA512:
6
- metadata.gz: 7562395536c84986c8173db5b09d8246beefa644a36a6385cc6c97aada6c285a04f0590d054e1d373e775e0202184bf74011c93a58789ce3a78ab426d9869bff
7
- data.tar.gz: ce686751c30d9521434b1285304d5e48a5961ddd8c47ad10f79c44e607d46c48477eab6cf38f32d7cd17e18a4876af9b6a4d4a9b6e29f8eedba7f2a5e3fffd89
6
+ metadata.gz: a51c0aa9f0456518e9fbaa0c169982eba71ddbcafeb189f91aa49adb7c2fced6a07d1a505cdf473f7deaad0f98ef566204280735f791abe16c788ead884d47d4
7
+ data.tar.gz: 43d73ce9e9d541823e6d827681fe5effce5e7b6b02034dccfb5256a2e3acf470ea8a8d07ff14031fd412fcefd8b953a4552f36040851fefa27e44077c8f0a3aa
@@ -60,17 +60,17 @@ class RsvpsController < ApplicationController
60
60
  @questionnaire.acc_status = params[:questionnaire][:acc_status]
61
61
  @questionnaire.acc_status_author_id = current_user.id
62
62
 
63
- bus_list_id = params[:questionnaire][:bus_list_id].presence
64
- bus_list = bus_list_id && BusList.find(bus_list_id)
65
- is_joining_bus = @questionnaire.bus_list != bus_list
66
- if is_joining_bus && bus_list.full?
63
+ new_bus_list_id = params[:questionnaire][:bus_list_id].presence
64
+ new_bus_list = new_bus_list_id && BusList.find(new_bus_list_id)
65
+ is_joining_bus = new_bus_list.present? && @questionnaire.bus_list != new_bus_list
66
+ if is_joining_bus && new_bus_list.full?
67
67
  if @questionnaire.bus_list_id?
68
68
  flash[:notice] = "Sorry, that bus is full. You are still signed up for the '#{@questionnaire.bus_list.name}' bus."
69
69
  else
70
70
  flash[:notice] = "Sorry, that bus is full. You may need to arrange other plans for transportation."
71
71
  end
72
72
  else
73
- @questionnaire.bus_list = bus_list
73
+ @questionnaire.bus_list = new_bus_list
74
74
  @questionnaire.bus_captain_interest = params[:questionnaire][:bus_captain_interest]
75
75
  end
76
76
 
@@ -60,7 +60,13 @@
60
60
  %th Checked in?
61
61
  %th Bus Captain
62
62
  %tbody
63
- - @bus_list.passengers.each do |p|
63
+ - was_bus_captain = false
64
+ - @bus_list.passengers.reorder('is_bus_captain DESC, last_name ASC').each do |p|
65
+ - # Visual separator between captains and passengers
66
+ - if was_bus_captain && !p.is_bus_captain
67
+ %tr
68
+ %td{colspan: 9}
69
+ - was_bus_captain = p.is_bus_captain
64
70
  %tr
65
71
  %td= link_to '<i class="fa fa-search"></i>'.html_safe, manage_questionnaire_path(p)
66
72
  %td= p.first_name
@@ -1,3 +1,3 @@
1
1
  module HackathonManager
2
- VERSION = '0.13.4'.freeze
2
+ VERSION = '0.13.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackathon_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.4
4
+ version: 0.13.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Olivera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-04 00:00:00.000000000 Z
11
+ date: 2019-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails