feat: Add 2 new templates without card backgrounds
All checks were successful
Build Docker / Build Main Image (push) Successful in 19s
Build Docker / Build SLDs Image (push) Successful in 19s

This commit is contained in:
2023-11-18 16:09:54 +11:00
parent f2801f5660
commit d5e9100634
5 changed files with 150 additions and 2 deletions

View File

@@ -153,8 +153,14 @@ def generate_foreground_color(background_color):
def rgb_to_hex(rgb_color):
return "#{:02x}{:02x}{:02x}".format(*rgb_color)
def get_template_file(template):
if template == "Original":
return "city-old.html"
return "city_old.html"
elif template == "No card around data":
return "city_no_card.html"
elif template == "No card around data (2)":
return "city_no_card_2.html"
return "city.html"