Browse Source

Development (#251)

* Fixed fonts

* Fixed assets

* Fixed logo in emails

* Switched to immediate email delivery

* Fixed prod emails and added deployment tasks

* Fixed deployments

* Updated README

* Added Bike Collectives Core to README

* Fixed issue with map loading

* Fixed issue with map loading

* Added map JSON data to assets precompilation

* Fixed error sending to conference administrators

* Let error report signature wrap

* Fixed backtrace in error reports

* Fixed backtrace in error reports

* Moved pronoun heading to make it more obvoius

I moved the "Pronoun" heading directly above the input field. It turned out that a lot of users were entering "He
 or "She" in the name field, I believe that was because of the placement of the "Pronoun" heading. I also needed to remove the optional warning but I'm hoping that won't cause problems.

* Added an error message when no email address is used on login

* Fixed select guest table

* Added house rules to housing admin and review

* Edit workshop locale warning

* Fixed workshop translation saving + ordered guests
development
Godwin 7 years ago
committed by GitHub
parent
commit
a6002d6c9a
  1. 4
      app/assets/stylesheets/bumbleberry-settings.json
  2. 2
      app/controllers/conference_administration_controller.rb
  3. 5
      app/controllers/workshops_controller.rb
  4. 2
      app/helpers/registration_helper.rb
  5. 1
      app/views/layouts/application.html.haml
  6. 3
      app/views/shared/_navbar.html.haml
  7. 2
      config/locales/fr.yml

4
app/assets/stylesheets/bumbleberry-settings.json

@ -7,8 +7,8 @@
}, },
"development": { "development": {
"safari": ["5", "5.1"], "safari": ["5", "5.1"],
"and_chr": ["59"], "and_chr": ["60"],
"chrome": ["59"], "chrome": ["60"],
"edge": ["13"], "edge": ["13"],
"firefox": ["54"], "firefox": ["54"],
"ie": ["11"], "ie": ["11"],

2
app/controllers/conference_administration_controller.rb

@ -884,6 +884,8 @@ class ConferenceAdministrationController < ApplicationController
end end
end end
@guests = @guests.sort_by { |k,v| v.user.firstname }
return @hosts_affected_by_guests return @hosts_affected_by_guests
end end

5
app/controllers/workshops_controller.rb

@ -147,8 +147,13 @@ class WorkshopsController < ApplicationController
# only save if the text has changed, if we want to make sure only to update the translator id if necessary # only save if the text has changed, if we want to make sure only to update the translator id if necessary
workshop.save_translations if do_save workshop.save_translations if do_save
elsif can_edit elsif can_edit
if workshop.locale.nil? || workshop.locale.to_s == I18n.locale.to_s
workshop.title = title workshop.title = title
workshop.info = info workshop.info = info
else
workshop.set_column_for_locale(:title, workshop.locale, title)
workshop.set_column_for_locale(:info, workshop.locale, info)
end
workshop.languages = (params[:languages] || {}).keys.to_json workshop.languages = (params[:languages] || {}).keys.to_json
workshop.needs = (params[:needs] || {}).keys.to_json workshop.needs = (params[:needs] || {}).keys.to_json
workshop.theme = params[:theme] == 'other' ? params[:other_theme] : params[:theme] workshop.theme = params[:theme] == 'other' ? params[:other_theme] : params[:theme]

2
app/helpers/registration_helper.rb

@ -8,7 +8,7 @@ module RegistrationHelper
def registration_status(registration) def registration_status(registration)
return :unregistered if registration.nil? return :unregistered if registration.nil?
return :cancelled if registration.is_attending == 'n' return :cancelled if registration.is_attending == 'n' && !registration.can_provide_housing
return registration.status return registration.status
end end

1
app/views/layouts/application.html.haml

@ -91,3 +91,4 @@
= javascripts = javascripts
= inline_scripts = inline_scripts
= emit_js_translations = emit_js_translations
=# javascript_include_tag :jsreader

3
app/views/shared/_navbar.html.haml

@ -3,7 +3,7 @@
= row(class: 'inner-nav') do = row(class: 'inner-nav') do
= columns(medium: 3) do = columns(medium: 3) do
- protect do - protect do
= link_to home_path, :class => 'logo' do = link_to home_path, class: :logo do
= svg 'logo', (_!'Bike Bike') = svg 'logo', (_!'Bike Bike')
= svg 'logo-text', (_!'Bike Bike') = svg 'logo-text', (_!'Bike Bike')
= off_screen _!'Bike Bike' = off_screen _!'Bike Bike'
@ -22,4 +22,3 @@
%a{href: url, lang: locale, title: translation_text} %a{href: url, lang: locale, title: translation_text}
%span{aria: {hidden: :true}}=_!locale %span{aria: {hidden: :true}}=_!locale
= off_screen translation_text = off_screen translation_text

2
config/locales/fr.yml

@ -1333,7 +1333,7 @@ fr:
d’avis à nouveau,veuillez cliquer sur le boutonci-dessous,maissouvenez-vousquesi d’avis à nouveau,veuillez cliquer sur le boutonci-dessous,maissouvenez-vousquesi
vous attendez trop longtemps,votre hébergement et votre bicyclette pourraient vous attendez trop longtemps,votre hébergement et votre bicyclette pourraient
être attribués à quelqu’un d’autre. être attribués à quelqu’un d’autre.
Housing: Vous restez à %{address}, le nom de votre hôte est %{name}. Vous pouvez les contacter par email %{email} ou par téléphone à %{phone}. Prenez le temps de lire les règles de leur maison ci-dessous. Housing: Vous serez hébergé(e) au %{address}, chez %{name}. Vous pouvez contacter cette personne à %{email} ou au %{phone}. Veuillez prendre la peine de lire les conditions d'hébergement ci-dessous.
pronoun_optional: Il n’y a aucune obligation de choisir un pronom. pronoun_optional: Il n’y a aucune obligation de choisir un pronom.
pronoun: Il importe que lorsqu'on communique avec vous ou au sujet de vous, pronoun: Il importe que lorsqu'on communique avec vous ou au sujet de vous,
ce soit avec respect. Si vous ne précisez pas votre pronom, les organisateurs ce soit avec respect. Si vous ne précisez pas votre pronom, les organisateurs

Loading…
Cancel
Save