From 0b99c6e8c5ab4419c83b38dbe6b470418f160f29 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 20 Jun 2020 00:20:26 +0200 Subject: [PATCH] yeb: fix graphlcd; TODO: add locales Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/483b4b18e7037ed5a0db84e89bc0a6c0a4c82f81 Author: vanhofen Date: 2020-06-20 (Sat, 20 Jun 2020) Origin message was: ------------------ - yeb: fix graphlcd; TODO: add locales --- data/y-web/Y_Boxcontrol_Menue.yhtm | 10 +--------- data/y-web/Y_Menue.yhtm | 7 +++++++ data/y-web/Y_Settings_Menue.yhtm | 10 +--------- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/data/y-web/Y_Boxcontrol_Menue.yhtm b/data/y-web/Y_Boxcontrol_Menue.yhtm index 40393f4fc..d6501c0ec 100644 --- a/data/y-web/Y_Boxcontrol_Menue.yhtm +++ b/data/y-web/Y_Boxcontrol_Menue.yhtm @@ -148,19 +148,11 @@ function get_data(){
  • {=L:bc.menue.remote=}
  • - {=if-not-equal:{=var-get:boxtype=}~VU+ SOLO4K~ - {=if-not-equal:{=var-get:boxtype=}~VU+ DUO4K~ - {=if-not-equal:{=var-get:boxtype=}~VU+ ULTIMO4K~ - {=if-not-equal:{=var-get:boxtype=}~VU+ UNO4K~ - {=if-not-equal:{=var-get:boxtype=}~VU+ UNO4KSE~ + {=if-equal:{=global-var-get:graphlcd=}~true~
  • {=L:bc.menue.glcd_screenshot=}
  • ~=} - ~=} - ~=} - ~=} - ~=} {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
  • {=if-empty:{=var-get:lcshot=}~ diff --git a/data/y-web/Y_Menue.yhtm b/data/y-web/Y_Menue.yhtm index 57b8137c5..da551661a 100644 --- a/data/y-web/Y_Menue.yhtm +++ b/data/y-web/Y_Menue.yhtm @@ -1,5 +1,12 @@ {=global-var-set:boxtype=coolstream=} {=global-var-set:alpha=true=} + +{=global-var-set:graphlcd=false=} + {=if-equal:{=var-get:boxtype=}~VU+ SOLO4K~ {=global-var-set:graphlcd=true=}~=} + {=if-equal:{=var-get:boxtype=}~VU+ DUO4K~ {=global-var-set:graphlcd=true=}~=} + {=if-equal:{=var-get:boxtype=}~VU+ ULTIMO4K~ {=global-var-set:graphlcd=true=}~=} + {=if-equal:{=var-get:boxtype=}~VU+ UNO4KSE~ {=global-var-set:graphlcd=true=}~=} + {=include-block:Y_Blocks.txt;head=} diff --git a/data/y-web/Y_Settings_Menue.yhtm b/data/y-web/Y_Settings_Menue.yhtm index 1a495ade9..b22cd89dd 100644 --- a/data/y-web/Y_Settings_Menue.yhtm +++ b/data/y-web/Y_Settings_Menue.yhtm @@ -84,21 +84,13 @@ function init(){ {=var-set:m_link_text={=L:set.menue.pictureviewer=}=} {=include-block:Y_Blocks.txt;management_link=}
  • - {=if-not-equal:{=var-get:boxtype=}~VU+ SOLO4K~ - {=if-not-equal:{=var-get:boxtype=}~VU+ DUO4K~ - {=if-not-equal:{=var-get:boxtype=}~VU+ ULTIMO4K~ - {=if-not-equal:{=var-get:boxtype=}~VU+ UNO4K~ - {=if-not-equal:{=var-get:boxtype=}~VU+ UNO4KSE~ + {=if-equal:{=global-var-get:graphlcd=}~true~
  • {=var-set:m_link_href=Y_Settings_glcd.yhtm=} {=var-set:m_link_text={=L:set.menue.glcd_display=}=} {=include-block:Y_Blocks.txt;management_link=}
  • ~=} - ~=} - ~=} - ~=} - ~=} {=if-not-equal:{=global-var-get:boxtype=}~coolstream~
  • {=var-set:m_link_href=Y_Settings_video_audio.yhtm=}