diff --git a/main.py b/main.py index 4a781d0..0023e94 100644 --- a/main.py +++ b/main.py @@ -34,7 +34,7 @@ if IMAGE_LOCATION == None: random_sites = "" # Templates available for user -templates = ['Standard', 'Original'] +templates = ['Standard', 'Original', 'No card around data', 'No card around data (2)'] #Assets routes @app.route('/assets/') diff --git a/sites/website.py b/sites/website.py index 9703d50..31378ed 100644 --- a/sites/website.py +++ b/sites/website.py @@ -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" \ No newline at end of file diff --git a/templates/city_no_card.html b/templates/city_no_card.html new file mode 100644 index 0000000..4d5f0ee --- /dev/null +++ b/templates/city_no_card.html @@ -0,0 +1,71 @@ + + + + + + + ShakeCities + + + + + + + + + + + + + + + + + + + + + + + +
+
{{avatar|safe}}
+
+

{{hnschat|safe}}

+

{{email|safe}}

+

{{location|safe}}

+
+
+
+

+ {{data|safe}} +

+
+
+

Donate

+
+

{{hns|safe}}

+

{{btc|safe}}

+

{{eth|safe}}

+
+
+ + +
+
+
+

Powered by ShakeCities

+
+
+
+ + + + + \ No newline at end of file diff --git a/templates/city_no_card_2.html b/templates/city_no_card_2.html new file mode 100644 index 0000000..2dd9938 --- /dev/null +++ b/templates/city_no_card_2.html @@ -0,0 +1,71 @@ + + + + + + + ShakeCities + + + + + + + + + + + + + + + + + + + + + + + +
+
{{avatar|safe}}
+
+

{{hnschat|safe}}

+

{{email|safe}}

+

{{location|safe}}

+
+
+
+

+ {{data|safe}} +

+
+
+

Donate

+
+

{{hns|safe}}

+

{{btc|safe}}

+

{{eth|safe}}

+
+
+ + +
+
+
+

Powered by ShakeCities

+
+
+
+ + + + + \ No newline at end of file diff --git a/templates/city-old.html b/templates/city_old.html similarity index 100% rename from templates/city-old.html rename to templates/city_old.html