From 5c795754117b375d36b2a174efd453875e464bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 9 Nov 2022 21:04:20 +0100 Subject: [PATCH] Improve snowreport layout on mobile devices --- .../Private/Templates/Snowreport/List.html | 98 +++++++------------ 1 file changed, 34 insertions(+), 64 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Snowreport/List.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Snowreport/List.html index bc2fad3f..1da3b322 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Snowreport/List.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Snowreport/List.html @@ -7,76 +7,46 @@ -
- - - - - - - - - - - - +
-
- - - - - - - - - - - - - - + +
+ + +
    +
  • + Berg/Tal: {snowreport.snow_level_mountain -> v:or(alternative: '-')}/{snowreport.snow_level_valley -> v:or(alternative: '-')} cm +
  • +
  • + Qualität: {snowreport.snow_quality} +
  • +
  • + Geöffnete Lifte: {snowreport.lifts_opened}/{snowreport.lifts_total}keine Angabe +
  • +
  • + Letzter Schneefall: {f:if(condition: snowreport.last_snowfall, then: '{snowreport.last_snowfall -> f:format.date(format: \'%d.%m.%Y\')}', else: 'keine Angabe')} +
  • +
  • + Letzte Akt.: {snowreport.last_update -> f:format.date(format: '%d.%m.%Y')} +
  • +
+
+ + Saison vom {snowreport.seasonStart -> f:format.date(format: '%d.%m.%Y')} bis {snowreport.seasonEnd -> f:format.date(format: '%d.%m.%Y')} + +
+
+ - -
- Gebiet - - Berg/Tal - - Qualität - - Geöffnete Lifte - - Letzter Schneefall - - Letzte Akt. -
+
+
+ {ep:icon(icon: 'flag-{snowreport.countryCode -> f:format.case(mode: \'lower\')}', class: 'w-8 h-6')} + class="text-white uppercase text-lg"> {snowreport.regionName} -
- - {snowreport.countryName} - -
- {snowreport.snow_level_mountain -> v:or(alternative: '-')}/{snowreport.snow_level_valley -> v:or(alternative: '-')} cm - - {snowreport.snow_quality} - - - {snowreport.lifts_opened}/{snowreport.lifts_total} - k. A. - - - {f:if(condition: snowreport.last_snowfall, then: '{snowreport.last_snowfall -> f:format.date(format: \'%d.%m.%Y\')}', else: '-')} - - {snowreport.last_update -> f:format.date(format: '%d.%m.%Y')} - Saison vom {snowreport.seasonStart -> f:format.date(format: '%d.%m.%Y')} bis {snowreport.seasonEnd -> f:format.date(format: '%d.%m.%Y')}
-
+