FIX: no access locale and svg icon
Dieser Commit ist enthalten in:
Ursprung
be204c1cb6
Commit
6dfd9e36c2
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
|
@ -2,6 +2,6 @@
|
||||||
<div class="no-access-gutter">
|
<div class="no-access-gutter">
|
||||||
<button class='wizard-btn primary return-to-site' {{action 'skip'}}>
|
<button class='wizard-btn primary return-to-site' {{action 'skip'}}>
|
||||||
{{wizard-i18n 'wizard.return_to_site' siteName=siteName}}
|
{{wizard-i18n 'wizard.return_to_site' siteName=siteName}}
|
||||||
{{d-icon "sign-out"}}
|
{{d-icon "sign-out-alt"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,8 +4,7 @@ module ExtraLocalesControllerCustomWizard
|
||||||
return false unless bundle =~ /wizard/ && request.referer =~ /\/w\//
|
return false unless bundle =~ /wizard/ && request.referer =~ /\/w\//
|
||||||
path = URI(request.referer).path
|
path = URI(request.referer).path
|
||||||
wizard_id = path.split('/w/').last
|
wizard_id = path.split('/w/').last
|
||||||
wizard = CustomWizard::Wizard.create(wizard_id.underscore, current_user)
|
CustomWizard::Template.exists?(wizard_id.underscore)
|
||||||
wizard && wizard.can_access?
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
Laden …
In neuem Issue referenzieren