Revision d238f652
Von Sven Schöling vor mehr als 3 Jahren hinzugefügt
SL/Controller/LoginScreen.pm | ||
---|---|---|
165 | 165 |
} |
166 | 166 |
|
167 | 167 |
sub set_layout { |
168 |
$::request->{layout} = SL::Layout::Dispatcher->new(style => 'login'); |
|
168 |
$::request->{layout} = $::request->is_mobile |
|
169 |
? SL::Layout::Dispatcher->new(style => 'mobile_login') |
|
170 |
: SL::Layout::Dispatcher->new(style => 'login'); |
|
171 |
|
|
172 |
$::lxdebug->dump(0, "layout", $::request->{layout}); |
|
169 | 173 |
} |
170 | 174 |
|
171 | 175 |
sub init_clients { |
... | ... | |
181 | 185 |
sub show_login_form { |
182 | 186 |
my ($self, %params) = @_; |
183 | 187 |
|
184 |
$self->render('login_screen/user_login', %params, version => SL::Version->get_version, callback => $::form->{callback}); |
|
188 |
if ($::request->is_mobile) { |
|
189 |
$self->render('login_screen/mobile_login', %params, version => SL::Version->get_version, callback => $::form->{callback}); |
|
190 |
} else { |
|
191 |
$self->render('login_screen/user_login', %params, version => SL::Version->get_version, callback => $::form->{callback}); |
|
192 |
} |
|
185 | 193 |
} |
186 | 194 |
|
187 | 195 |
1; |
Auch abrufbar als: Unified diff
Mobile Layout: Loginscreen für mobile User rendern