From 95a5c95842de869cfd7c8e9d1c824dc0780af949 Mon Sep 17 00:00:00 2001 From: jwansek Date: Wed, 22 Dec 2021 19:35:12 +0000 Subject: renamed all template files --- templates/discord.html | 5 --- templates/discord.jinja | 5 +++ templates/index.html | 37 ---------------- templates/index.jinja | 37 ++++++++++++++++ templates/nhdl.html | 8 ---- templates/nhdl.jinja | 8 ++++ templates/random.html | 22 --------- templates/random.jinja | 22 +++++++++ templates/services.html | 113 ----------------------------------------------- templates/services.jinja | 113 +++++++++++++++++++++++++++++++++++++++++++++++ templates/template.html | 80 --------------------------------- templates/template.jinja | 80 +++++++++++++++++++++++++++++++++ templates/thoughts.html | 12 ----- templates/thoughts.jinja | 12 +++++ 14 files changed, 277 insertions(+), 277 deletions(-) delete mode 100644 templates/discord.html create mode 100644 templates/discord.jinja delete mode 100644 templates/index.html create mode 100644 templates/index.jinja delete mode 100644 templates/nhdl.html create mode 100644 templates/nhdl.jinja delete mode 100644 templates/random.html create mode 100644 templates/random.jinja delete mode 100644 templates/services.html create mode 100644 templates/services.jinja delete mode 100644 templates/template.html create mode 100644 templates/template.jinja delete mode 100644 templates/thoughts.html create mode 100644 templates/thoughts.jinja (limited to 'templates') diff --git a/templates/discord.html b/templates/discord.html deleted file mode 100644 index b4504a2..0000000 --- a/templates/discord.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "template.html" %} -{% block content %} -

You can contact me on discord (telegram preferred):

-

{{discord}}

- {% endblock %} \ No newline at end of file diff --git a/templates/discord.jinja b/templates/discord.jinja new file mode 100644 index 0000000..b4504a2 --- /dev/null +++ b/templates/discord.jinja @@ -0,0 +1,5 @@ +{% extends "template.html" %} +{% block content %} +

You can contact me on discord (telegram preferred):

+

{{discord}}

+ {% endblock %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 07488fe..0000000 --- a/templates/index.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends "template.html" %} -{% block content %} - - {{markdown|safe}} - {% if tweets != None %} -
-

recent tweets

- -
- {% endif %} -
-

recent git commits:

- -
-{% endblock %} \ No newline at end of file diff --git a/templates/index.jinja b/templates/index.jinja new file mode 100644 index 0000000..0bb9604 --- /dev/null +++ b/templates/index.jinja @@ -0,0 +1,37 @@ +{% extends "template.html" %} +{% block content %} + + {{markdown|safe}} + {% if tweets != None %} +
+

recent tweets

+ +
+ {% endif %} +
+

recent git commits:

+ +
+{% endblock %} \ No newline at end of file diff --git a/templates/nhdl.html b/templates/nhdl.html deleted file mode 100644 index 6702113..0000000 --- a/templates/nhdl.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "template.html" %} -{% block content %} -
- -

- -
-{% endblock %} \ No newline at end of file diff --git a/templates/nhdl.jinja b/templates/nhdl.jinja new file mode 100644 index 0000000..6702113 --- /dev/null +++ b/templates/nhdl.jinja @@ -0,0 +1,8 @@ +{% extends "template.html" %} +{% block content %} +
+ +

+ +
+{% endblock %} \ No newline at end of file diff --git a/templates/random.html b/templates/random.html deleted file mode 100644 index b6e7f64..0000000 --- a/templates/random.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "template.html" %} -{% block content %} - -
- -

generate another

-

artist link

-
-{% endblock %} \ No newline at end of file diff --git a/templates/random.jinja b/templates/random.jinja new file mode 100644 index 0000000..b6e7f64 --- /dev/null +++ b/templates/random.jinja @@ -0,0 +1,22 @@ +{% extends "template.html" %} +{% block content %} + +
+ +

generate another

+

artist link

+
+{% endblock %} \ No newline at end of file diff --git a/templates/services.html b/templates/services.html deleted file mode 100644 index 9ea1d3f..0000000 --- a/templates/services.html +++ /dev/null @@ -1,113 +0,0 @@ -{% extends "template.html" %} -{% block content %} -
-
-

docker

- {% if docker == None %} -

Couldn't access the docker API. Is sherpa running?

- {% else %} - - {% for name, status in docker.items() %} - - - {% if status == "running" %} - - {% else %} - - {% endif %} - - {% endfor %} -
{{name}}{{status}}{{status}}
- {% endif %} -
-
-

qbittorrent

- {% if qbit == None %} -

Couldn't access the qbittorrent API. Is docker container running?

- {% else %} - - - - - - - - - - - - - - - - - -
downloaded{{qbit["bytes_dl"]}}
uploaded{{qbit["bytes_up"]}}
torrents{{qbit["num"]}}
ratio{{qbit["ratio"]}}
- {% endif %} -

transmission

- {% if trans == None %} -

Couldn't access the transmission API. Is docker container running?

- {% else %} - - - - - - - - - - - - - - - - - -
downloaded{{trans["bytes_dl"]}}
uploaded{{trans["bytes_up"]}}
torrents{{trans["num"]}}
ratio{{trans["ratio"]}}
- {% endif %} -
-
-

pihole

- {% if pihole == None %} -

Couldn't access the pihole API. Is docker container running?

- {% else %} - - - - {% if pihole["status"] == "enabled" %} - - {% else %} - - {% endif %} - - - - - - - - - - - - - - - - - - - - - - - - - -
status{{pihole["status"]}}{{pihole["status"]}}
queries{{pihole["queries"]}}
clients{{pihole["clients"]}}
percentage blocked{{pihole["percentage"]}}%
blocked requests{{pihole["blocked"]}}
domains in blocklist{{pihole["domains"]}}
last updated{{pihole["last_updated"]}}
- {% endif %} -
-
-{% endblock %} \ No newline at end of file diff --git a/templates/services.jinja b/templates/services.jinja new file mode 100644 index 0000000..9ea1d3f --- /dev/null +++ b/templates/services.jinja @@ -0,0 +1,113 @@ +{% extends "template.html" %} +{% block content %} +
+
+

docker

+ {% if docker == None %} +

Couldn't access the docker API. Is sherpa running?

+ {% else %} + + {% for name, status in docker.items() %} + + + {% if status == "running" %} + + {% else %} + + {% endif %} + + {% endfor %} +
{{name}}{{status}}{{status}}
+ {% endif %} +
+
+

qbittorrent

+ {% if qbit == None %} +

Couldn't access the qbittorrent API. Is docker container running?

+ {% else %} + + + + + + + + + + + + + + + + + +
downloaded{{qbit["bytes_dl"]}}
uploaded{{qbit["bytes_up"]}}
torrents{{qbit["num"]}}
ratio{{qbit["ratio"]}}
+ {% endif %} +

transmission

+ {% if trans == None %} +

Couldn't access the transmission API. Is docker container running?

+ {% else %} + + + + + + + + + + + + + + + + + +
downloaded{{trans["bytes_dl"]}}
uploaded{{trans["bytes_up"]}}
torrents{{trans["num"]}}
ratio{{trans["ratio"]}}
+ {% endif %} +
+
+

pihole

+ {% if pihole == None %} +

Couldn't access the pihole API. Is docker container running?

+ {% else %} + + + + {% if pihole["status"] == "enabled" %} + + {% else %} + + {% endif %} + + + + + + + + + + + + + + + + + + + + + + + + + +
status{{pihole["status"]}}{{pihole["status"]}}
queries{{pihole["queries"]}}
clients{{pihole["clients"]}}
percentage blocked{{pihole["percentage"]}}%
blocked requests{{pihole["blocked"]}}
domains in blocklist{{pihole["domains"]}}
last updated{{pihole["last_updated"]}}
+ {% endif %} +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/template.html b/templates/template.html deleted file mode 100644 index 77bf38c..0000000 --- a/templates/template.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - eda.gay :: {{title}} - - -
-
- -
-
-

{{title}}

- -
- - {{image[0]}} - -
-
- - {% if thought %} - - {% endif %} -
- {% block content %} - {% endblock %} -
- -
- - diff --git a/templates/template.jinja b/templates/template.jinja new file mode 100644 index 0000000..77bf38c --- /dev/null +++ b/templates/template.jinja @@ -0,0 +1,80 @@ + + + + + + + eda.gay :: {{title}} + + +
+
+ +
+
+

{{title}}

+ +
+ + {{image[0]}} + +
+
+ + {% if thought %} + + {% endif %} +
+ {% block content %} + {% endblock %} +
+ +
+ + diff --git a/templates/thoughts.html b/templates/thoughts.html deleted file mode 100644 index bdbe854..0000000 --- a/templates/thoughts.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "template.html" %} -{% block content %} - {% for category_name, thoughts in tree.items() %} -

{{category_name}}

-
- {% for id_, title, dt in thoughts %} -
{{title}}
-
{{dt}}
- {% endfor %} -
- {% endfor %} -{% endblock %} \ No newline at end of file diff --git a/templates/thoughts.jinja b/templates/thoughts.jinja new file mode 100644 index 0000000..bdbe854 --- /dev/null +++ b/templates/thoughts.jinja @@ -0,0 +1,12 @@ +{% extends "template.html" %} +{% block content %} + {% for category_name, thoughts in tree.items() %} +

{{category_name}}

+
+ {% for id_, title, dt in thoughts %} +
{{title}}
+
{{dt}}
+ {% endfor %} +
+ {% endfor %} +{% endblock %} \ No newline at end of file -- cgit v1.2.3