summaryrefslogtreecommitdiff
path: root/templates/layouts
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-05-03 17:15:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-05-03 17:15:52 +0200
commit4a4d7f4ba8ebc8719c536ea07f89c6848d542f90 (patch)
tree66a70a293a9fe638a3975efdfe8c289d22c8902e /templates/layouts
parentfcf3b4992d6bea1bd2f9191970acfb74e2bf963b (diff)
add force_mobile parameter for users who want to enforce desktop/mobile view1.03
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/default.html.ep3
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'