From 4a4d7f4ba8ebc8719c536ea07f89c6848d542f90 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 3 May 2016 17:15:52 +0200 Subject: add force_mobile parameter for users who want to enforce desktop/mobile view --- templates/layouts/default.html.ep | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' -- cgit v1.2.3