Browse Source

Fixed ocale not found translations and copy on email confirmation page

development
Godwin 8 years ago
parent
commit
79bb86e8c7
  1. 4
      app/assets/stylesheets/_application.scss
  2. 2
      app/controllers/application_controller.rb
  3. 5
      app/controllers/conferences_controller.rb

4
app/assets/stylesheets/_application.scss

@ -1175,7 +1175,7 @@ ul.warnings li,
ul {
@include _-(display, flex);
list-style: none;
margin: 2em 0 5em;
margin: 2em 2em 5em 0;
padding: 0;
}
@ -3630,7 +3630,7 @@ html[data-ontop] {
.flow-steps {
ul {
margin-bottom: 1em;
margin: 2em 0 1em 0;
}
.step {

2
app/controllers/application_controller.rb

@ -194,7 +194,7 @@ class ApplicationController < LinguaFrancaApplicationController
end
def locale_not_available!(locale = nil)
# set_default_locale
set_default_locale
params[:_original_action] = params[:action]
params[:action] = 'error-locale-not-available'
@page_title = 'page_titles.404.Locale_Not_Available'

5
app/controllers/conferences_controller.rb

@ -531,7 +531,6 @@ class ConferencesController < ApplicationController
@is_host = @this_conference.host? current_user
else
@page_title = "articles.conference_registration.headings.#{@this_conference.registration_status == :open ? '': 'Pre_'}Registration_Details"
@register_template = :confirm_email
end
@ -880,8 +879,8 @@ class ConferencesController < ApplicationController
@entire_page = true
get_scheule_data
end
when :done
@amount = ((@registration.registration_fees_paid || 0) * 100).to_i.to_s.gsub(/^(.*)(\d\d)$/, '\1.\2')
when :confirm_email
@page_title = "articles.conference_registration.headings.#{@this_conference.registration_status == :open ? '': 'Pre_'}Registration_Details"
end
end

Loading…
Cancel
Save