Added localization to workshops, made login persist through subdomains
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
%ul
|
||||
-I18n.backend.enabled_locales.each do |locale|
|
||||
%li
|
||||
%a{href: request.original_url.gsub(/^(https?:\/\/)(preview\-)?(..\.)?(.*)$/, '\1\2' + locale + '.\4')}
|
||||
%a{href: home_url(url_params(locale))}
|
||||
=_! locale.upcase
|
||||
%span=I18n.t("languages.#{locale}", locale: locale, context: I18n.t("languages.#{locale}"))
|
||||
.copy
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
= nav_link about_path, (_'page_titles.About_BikeBike')
|
||||
= nav_link policy_path, (_'page_titles.Safe_Space_Policy')
|
||||
.actions
|
||||
- if @conference.registration_open
|
||||
- if @conference && @conference.registration_open
|
||||
- if params[:action] != 'register' && !@registration
|
||||
= link_to register_path(@conference.slug), class: [:button, :register] do
|
||||
=_'conference.actions.Register'
|
||||
- else
|
||||
- elsif @conference
|
||||
= render 'shared/donate_button', :email_address => (@conference.paypal_email_address || @conference.email_address)
|
||||
- if current_user
|
||||
= form_tag :logout, class: :logout do
|
||||
|
||||
Reference in New Issue
Block a user