diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-05-03 17:15:52 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-05-03 17:15:52 +0200 |
commit | 4a4d7f4ba8ebc8719c536ea07f89c6848d542f90 (patch) | |
tree | 66a70a293a9fe638a3975efdfe8c289d22c8902e /templates | |
parent | fcf3b4992d6bea1bd2f9191970acfb74e2bf963b (diff) |
add force_mobile parameter for users who want to enforce desktop/mobile view1.03
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layouts/default.html.ep | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 6d3b9f9..7e89c5f 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -10,7 +10,8 @@ %= stylesheet '/static/default.css' -% if ($self->browser->mobile) { +% my $force_mobile = param('force_mobile') // -1; +% if ($force_mobile == 1 or ($self->browser->mobile and $force_mobile != 0)) { %= stylesheet '/static/mobile.css' % } %= javascript '/static/jquery-1.10.2.min.js' |