From a9664a63d44c9a5ccd0a0f8aa0f9806d6e7c3deb Mon Sep 17 00:00:00 2001 From: Giovanni Giacobbi Date: Thu, 21 Jan 2021 11:47:33 +0100 Subject: [PATCH] Introduce variable 'brand_name' to avoid code repeatition Signed-off-by: Giovanni Giacobbi --- luasrc/view/themes/argon/header.htm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/luasrc/view/themes/argon/header.htm b/luasrc/view/themes/argon/header.htm index 4ef145b..5c6dbfd 100644 --- a/luasrc/view/themes/argon/header.htm +++ b/luasrc/view/themes/argon/header.htm @@ -49,6 +49,9 @@ mode = uci:get_first('argon', 'global', 'mode') bar_color = mode == 'dark' and dark_primary or primary end + + -- Brand name + local brand_name = boardinfo.hostname or "?" -%> @@ -224,7 +227,7 @@