mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
Added images to the first and last step of the wizard
This commit is contained in:
@ -9,6 +9,8 @@ class Wizard
|
||||
return @wizard unless SiteSetting.wizard_enabled? && @wizard.user.try(:staff?)
|
||||
|
||||
@wizard.append_step('locale') do |step|
|
||||
step.banner = "welcome.png"
|
||||
|
||||
languages = step.add_field(id: 'default_locale',
|
||||
type: 'dropdown',
|
||||
required: true,
|
||||
@ -164,7 +166,9 @@ class Wizard
|
||||
|
||||
DiscourseEvent.trigger(:build_wizard, @wizard)
|
||||
|
||||
@wizard.append_step('finished')
|
||||
@wizard.append_step('finished') do |step|
|
||||
step.banner = "finished.png"
|
||||
end
|
||||
@wizard
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user