From 737cac7c2c8da1000159f79ab95dc8c9ca2252bc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 15 Sep 2016 17:25:09 +0200 Subject: main menu: auto-select infoscreen template for mobile clients --- templates/main.html.ep | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/main.html.ep b/templates/main.html.ep index 30240ed..de634f9 100644 --- a/templates/main.html.ep +++ b/templates/main.html.ep @@ -138,7 +138,12 @@ kind.
Frontend
- %= select_field frontend => [['LED board (PNG)' => 'png'], ['LED board (HTML)' => 'html'], ['App / Infoscreen' => 'infoscreen'], ['JSON' => 'json']] + % if ($self->browser->mobile) { + %= select_field frontend => [['App / Infoscreen' => 'infoscreen'], ['LED board (PNG)' => 'png'], ['LED board (HTML)' => 'html'], ['JSON' => 'json']] + % } + % else { + %= select_field frontend => [['LED board (PNG)' => 'png'], ['LED board (HTML)' => 'html'], ['App / Infoscreen' => 'infoscreen'], ['JSON' => 'json']] + % }
-- cgit v1.2.3