summaryrefslogtreecommitdiff
path: root/templates/layouts/default.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-29 08:52:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-29 08:52:24 +0200
commite7d37d5a81537668a71d373c8eb59d08242c25d4 (patch)
treed208d334d9d5dd6dc2a0b1f3dae7985e567573f9 /templates/layouts/default.html.ep
parentcd1dc7572478988591389f75e15109419089c440 (diff)
Switch to App/Mobile first, no longer rely on BrowserDetect plugin
"App" with force_mobile=1 is now the default view even on desktop -- The infoscreen template's extra large font wasn't really nice. This breaks the setup of everyone who was relying on infoscreen being the default -- please append `mode=infoscreen` to your requests.
Diffstat (limited to 'templates/layouts/default.html.ep')
-rw-r--r--templates/layouts/default.html.ep7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 7649be5..ee12097 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -13,8 +13,8 @@
% my $av = 'v8'; # asset version
%= stylesheet "/static/${av}/default.css"
%= stylesheet "/static/${av}/jquery-ui.min.css"
-% my $force_mobile = param('force_mobile') // -1;
-% if ($force_mobile == 1 or ($self->browser->mobile and $force_mobile != 0)) {
+% my $force_mobile = param('force_mobile') // stash('force_mobile');
+% if ($force_mobile) {
%= stylesheet "/static/${av}/mobile.css"
% }
%if (stash('load_marquee')) {
@@ -199,8 +199,7 @@ Bitte eine Station aus der Liste auswählen</div>
<ul>
<li>Diese Seite kann gerne als iframe in eigene Infoscreens o.ä. eingebunden werden.
Für eine kleine Ansicht (z.B. iframe in einer normalen Website) bitte das
- "App"-Frontend verwenden (und vorerst den Parameter <span style="font-family: monospace;">force_mobile=1</span>
- hinzufügen, das ist bald aber nicht mehr nötig). Für eine große Ansicht
+ "App"-Frontend verwenden. Für eine große Ansicht
(z.B. als alleinstehender Infoscreen) gibt es das "Infoscreen"-Frontend.</li>
<li>Die Parameter <span style="font-family: monospace;">mode=json&amp;version=3</span>
(alternativ auch <span style="font-family: