summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-09-15 17:25:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-09-15 17:25:09 +0200
commit737cac7c2c8da1000159f79ab95dc8c9ca2252bc (patch)
tree5e2dacbb61b62d148d9a03944113ccdf1a0f9037 /templates
parent493d9f816cf6176291af4d78a80eaab04e583a51 (diff)
main menu: auto-select infoscreen template for mobile clients
Diffstat (limited to 'templates')
-rw-r--r--templates/main.html.ep7
1 files changed, 6 insertions, 1 deletions
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.
<div class="field">
<div class="desc">Frontend</div>
<div>
- %= 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']]
+ % }
</div>
</div>
<div class="field">