diff --git a/sites/website.py b/sites/website.py
index 1e36f77..5f0cf6d 100644
--- a/sites/website.py
+++ b/sites/website.py
@@ -29,20 +29,32 @@ def render(data,db_object):
hns = db_object['HNS']
btc = db_object['BTC']
eth = db_object['ETH']
- if hns != "":
- hns = "HNS: " + hns
- if btc != "":
- btc = "BTC: " + btc
- if eth != "":
- eth = "ETH: " + eth
-
bg_colour = db_object['bg_colour']
fg_colour = db_object['fg_colour']
text_colour = db_object['text_colour']
- if (rgb_to_hex(generate_foreground_color(fg_colour)) == ""):
+ if (rgb_to_hex(generate_foreground_color(text_colour)) == "#000000"):
hns_icon = "assets/img/HNSW.png"
+ btc_icon = "assets/img/BTCW.png"
+ eth_icon = "assets/img/ETHW.png"
+ location_icon = "assets/img/mapw.png"
else:
hns_icon = "assets/img/HNS.png"
+ btc_icon = "assets/img/BTC.png"
+ eth_icon = "assets/img/ETH.png"
+ location_icon = "assets/img/map.png"
+
+ if hns != "":
+ hns = "" + hns
+ if btc != "":
+ btc = "" + btc
+ if eth != "":
+ eth = "" + eth
+ if hnschat != "":
+ hnschat = "" + hnschat
+ if location != "":
+ location = "" + location
+
+
except Exception as e:
return "
Invalid data
Please contact support
This can often be fixed by saving your site again in the editor
" + ""
diff --git a/templates/assets/css/city.min.css b/templates/assets/css/city.min.css
new file mode 100644
index 0000000..eee4151
--- /dev/null
+++ b/templates/assets/css/city.min.css
@@ -0,0 +1 @@
+a{color:inherit}
\ No newline at end of file
diff --git a/templates/assets/img/BTC.png b/templates/assets/img/BTC.png
new file mode 100644
index 0000000..16dce5d
Binary files /dev/null and b/templates/assets/img/BTC.png differ
diff --git a/templates/assets/img/BTCW.png b/templates/assets/img/BTCW.png
new file mode 100644
index 0000000..5ad61ac
Binary files /dev/null and b/templates/assets/img/BTCW.png differ
diff --git a/templates/assets/img/ETH.png b/templates/assets/img/ETH.png
new file mode 100644
index 0000000..94a76de
Binary files /dev/null and b/templates/assets/img/ETH.png differ
diff --git a/templates/assets/img/ETHW.png b/templates/assets/img/ETHW.png
new file mode 100644
index 0000000..32dc843
Binary files /dev/null and b/templates/assets/img/ETHW.png differ
diff --git a/templates/assets/img/map.png b/templates/assets/img/map.png
new file mode 100644
index 0000000..304a0d0
Binary files /dev/null and b/templates/assets/img/map.png differ
diff --git a/templates/assets/img/mapw.png b/templates/assets/img/mapw.png
new file mode 100644
index 0000000..63d7f68
Binary files /dev/null and b/templates/assets/img/mapw.png differ
diff --git a/templates/city.html b/templates/city.html
index be13cad..17351a6 100644
--- a/templates/city.html
+++ b/templates/city.html
@@ -14,6 +14,7 @@
+
@@ -21,23 +22,23 @@
-
{{location}}
+
{{location|safe}}
@@ -47,23 +48,23 @@
-
{{hnschat}}
+
{{hnschat|safe}}
-
{{location}}
+
{{location|safe}}
@@ -73,23 +74,23 @@
-
{{hnschat}}
+
{{hnschat|safe}}
-
{{location}}
+
{{location|safe}}