aboutsummaryrefslogtreecommitdiffstats
path: root/edaweb/templates
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
commit0e8ada1eff8799437c9be1bc2af10d6198fa8cad (patch)
tree65d40b0c83fc2477306d561d8b98741e8e6585c6 /edaweb/templates
parent9e077a790919e2980111262fbde500a5cee828f8 (diff)
downloadboymoder.blog-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.tar.gz
boymoder.blog-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.zip
Added inline HTML into blogposts, refactored a bit
Diffstat (limited to 'edaweb/templates')
-rw-r--r--edaweb/templates/diary.html.j226
-rw-r--r--edaweb/templates/discord.html.j25
-rw-r--r--edaweb/templates/index.html.j224
-rw-r--r--edaweb/templates/isocd.html.j232
-rw-r--r--edaweb/templates/isocd_confirmation.html.j216
-rw-r--r--edaweb/templates/nhdl.html.j28
-rw-r--r--edaweb/templates/questions.html.j217
-rw-r--r--edaweb/templates/random.html.j222
-rw-r--r--edaweb/templates/services.html.j259
-rw-r--r--edaweb/templates/template.html.j276
-rw-r--r--edaweb/templates/thought.html.j229
-rw-r--r--edaweb/templates/thoughts.html.j212
12 files changed, 326 insertions, 0 deletions
diff --git a/edaweb/templates/diary.html.j2 b/edaweb/templates/diary.html.j2
new file mode 100644
index 0000000..f6604f7
--- /dev/null
+++ b/edaweb/templates/diary.html.j2
@@ -0,0 +1,26 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <h4>this page might not be up-to-date if my diary account is search banned</h4>
+ <p>if in doubt check my <a href="https://twitter.com/{{ diary_account }}">diary account</a> <br> <a href="https://shadowban.yuzurisa.com/{{ diary_account }}">check if i'm currently search banned</a></p>
+ <dl>
+ {% for dt, entries in diary.items() %}
+ <dt><a href="{{ entries[0]['link'] }}">{{ dt }}</a></dt>
+ <dd>
+ <ol id="diaryentry">
+ {% for entry in entries %}
+ {% if entry["images"] != [] %}
+ <ul>
+ {% for img in entry["images"] %}
+ <li><a href="{{ img }}" target='_blank'><img src="{{ img }}"></a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ <li>
+ <p>{{ entry["text"] }}</p>
+ </li>
+ {% endfor %}
+ </ol>
+ </dd>
+ {% endfor %}
+ </dl>
+{% endblock %}
diff --git a/edaweb/templates/discord.html.j2 b/edaweb/templates/discord.html.j2
new file mode 100644
index 0000000..597fb4b
--- /dev/null
+++ b/edaweb/templates/discord.html.j2
@@ -0,0 +1,5 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <p>You can contact me on discord (telegram preferred):</p>
+ <h1>{{discord}}</h1>
+ {% endblock %} \ No newline at end of file
diff --git a/edaweb/templates/index.html.j2 b/edaweb/templates/index.html.j2
new file mode 100644
index 0000000..d6c08d8
--- /dev/null
+++ b/edaweb/templates/index.html.j2
@@ -0,0 +1,24 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <aside>
+ <a><i>{{ "%d days until FFS" % days_till_ffs.days }}</i></a>
+ <section id="recent_thoughts">
+ <h4>recent thoughts:</h4>
+ <ul>
+ {% for id_, title in featured_thoughts %}
+ <li><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></li>
+ {% endfor %}
+ </ul>
+ </section>
+ <img id="sidebar_img" alt="{{sidebar_img[0]}}" src="{{sidebar_img[1]}}">
+ </aside>
+ {{markdown|safe}}
+ <section id="recent_commits">
+ <h3>recent git commits:</h3>
+ <ul>
+ {% for commit in commits %}
+ <li>[<a href="{{commit['git_repo_url']}}">{{commit["repo"]}}</a>] {+{{commit["stats"]["additions"]}}; -{{commit["stats"]["deletions"]}}} <a href="{{commit['git_commit_url']}}">{{commit["message"]}}</a> - <a href="{{commit['github_commit_url']}}">github mirror</a></li>
+ {% endfor %}
+ </ul>
+ </section>
+{% endblock %}
diff --git a/edaweb/templates/isocd.html.j2 b/edaweb/templates/isocd.html.j2
new file mode 100644
index 0000000..3c532c0
--- /dev/null
+++ b/edaweb/templates/isocd.html.j2
@@ -0,0 +1,32 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <p>As discussed <a href="https://nitter.eda.gay/estrogenizedboy/status/1490322471215636480#m">here</a>, I will post a GNU/Linux install CD to you for free (provided you live in the United Kingdom). Just fill out the form below:</p>
+ <form action="/getisocd" method="POST">
+ <label for="email">*Email:</label>
+ <input type="email" id="email" name="email" required><br><br>
+ <label for="iso">*ISO:</label>
+ <select name="iso" id="iso" required>
+ {% for iso in iso_options %}
+ <option value="{{ iso }}">{{ iso }}</option>
+ {% endfor %}
+ </select><br><br>
+ <p>Sadly there is an upper limit on ISOs of 700Mb coz thats what u can fit on a cd ;_; so big isos arent listed</p><br>
+ <label for="name">*Name:</label>
+ <input id="name" name="name" required><br><br>
+ <label for="house">*House Number/Name:</label>
+ <input id="house" name="house" required><br><br>
+ <label for="street">*Street:</label>
+ <input id="street" name="street" required><br><br>
+ <label for="city">City:</label>
+ <input id="city" name="city"><br><br>
+ <label for="county">County:</label>
+ <input id="county" name="county"><br><br>
+ <label for="postcode">*Postcode:</label>
+ <input id="postcode" name="postcode" required><br><br>
+ <input type="submit" value="Submit">
+ </form>
+ <p>I make no promises how long this will actually take, but you might get a special present too uwu</p>
+ <p>btw if u abuse this service i'll just ignore u</p>
+ <h3>Testimonials</h3>
+ <a href="https://nitter.eda.gay/stellarnate_/status/1492468706412269569"><img src="/img/testimonials.PNG"></a>
+{% endblock %} \ No newline at end of file
diff --git a/edaweb/templates/isocd_confirmation.html.j2 b/edaweb/templates/isocd_confirmation.html.j2
new file mode 100644
index 0000000..81045a8
--- /dev/null
+++ b/edaweb/templates/isocd_confirmation.html.j2
@@ -0,0 +1,16 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <p>Your order has been placed. Expect a confirmation email to {{ email }} when I can be bothered to sort it out.</p>
+ <br>
+ <p>Your order/reference id is {{ id_ }}</p>
+ <br>
+ <p>The details were as follows:</p>
+ <table>
+ {% for k, v in req.items() %}
+ <tr>
+ <td>{{ k.upper() }}</td>
+ <td>{{ v }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+{% endblock %} \ No newline at end of file
diff --git a/edaweb/templates/nhdl.html.j2 b/edaweb/templates/nhdl.html.j2
new file mode 100644
index 0000000..5ab62c2
--- /dev/null
+++ b/edaweb/templates/nhdl.html.j2
@@ -0,0 +1,8 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <form action="/nhdlredirect" method="POST">
+ <label for="nhentai">nHentai.net number:</label>
+ <input type="text" id="number_input" name="number_input"><br><br>
+ <input type="submit" value="Download">
+ </form>
+{% endblock %} \ No newline at end of file
diff --git a/edaweb/templates/questions.html.j2 b/edaweb/templates/questions.html.j2
new file mode 100644
index 0000000..eb58380
--- /dev/null
+++ b/edaweb/templates/questions.html.j2
@@ -0,0 +1,17 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <h4><a href="{{ qnas_link }}">ask a question!</a></h4>
+ <dl>
+ {% for id_, link, dt, question, answer, host in qnas %}
+ {% if host == "curiouscat" %}
+ <dt class="qnaheader"><a href="{{ link }}">{{ dt.isoformat() }}</a> - {{ host }}</dt>
+ {% else %}
+ <dt class="qnaheader">{{ dt.isoformat() }} - {{ host }}</dt>
+ {% endif %}
+ <dd>
+ <dt class="question"><p>{{ question }}</p></dt>
+ <dd class="answer"><p>{{ answer }}</p></dd>
+ </dd>
+ {% endfor %}
+ </dl>
+{% endblock %}
diff --git a/edaweb/templates/random.html.j2 b/edaweb/templates/random.html.j2
new file mode 100644
index 0000000..76b433b
--- /dev/null
+++ b/edaweb/templates/random.html.j2
@@ -0,0 +1,22 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <aside id="tags">
+ <h1>current search tags: (click to remove)</h1>
+ <ul>
+ {% for tag in sbi.searchTags %}
+ <li><a href={{"/random?tags=" + "+".join(sbi.remove_tag(tag))}}>{{tag}}</a></li>
+ {% endfor %}
+ </ul>
+ <h1>this image's tags:</h1>
+ <ul>
+ {% for tag in sbi.tags %}
+ <li><a href={{"/random?tags=" + "+".join(sbi.searchTags + [tag])}}>{{tag}}</a></li>
+ {% endfor %}
+ </ul>
+ </aside>
+ <section id="randomImage">
+ <a href={{sbi.source}}><img src={{localimg}}></a>
+ <h1><a href={{"/random?tags=" + "+".join(sbi.searchTags)}}>generate another</a></h1>
+ <h2><a href={{sbi.source}}>artist link</a></h2>
+ </section>
+{% endblock %} \ No newline at end of file
diff --git a/edaweb/templates/services.html.j2 b/edaweb/templates/services.html.j2
new file mode 100644
index 0000000..9f42c7f
--- /dev/null
+++ b/edaweb/templates/services.html.j2
@@ -0,0 +1,59 @@
+{% extends "template.html.j2" %}
+{% block content %}
+<article id=statusTables>
+ <section id=docker>
+ <h2>docker</h2>
+ <ul>
+ {% for host, containers in docker["containers"].items() %}
+ <h4>{{ "%s - %s" % (host[0], host[1]) }}</h4>
+ <table>
+ {% for name, status, image in containers %}
+ <tr>
+ <td>{{ name }}</td>
+ {% if "Up" in status %}
+ <td class=running>{{ status }}</td>
+ {% else %}
+ <td class=notRunning>{{ status }}</td>
+ {% endif %}
+ <td>{{ image }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endfor %}
+ </ul>
+ <p>{{ docker["cachetime"] }}</p>
+ </section>
+
+ <section id="torrents">
+ <h2>transmission</h2>
+ {% if trans == None %}
+ <p>Couldn't access the transmission API. Is docker container running?</p>
+ {% else %}
+ <table>
+ {% for k, v in trans.items() %}
+ <tr>
+ <td>{{ k }}</td>
+ <td>{{ v }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
+ </section>
+
+ <section id=pihole>
+ <h2>pihole</h2>
+ {% if pihole == None %}
+ <p>Couldn't access the pihole API. Is docker container running?</p>
+ {% else %}
+ <table>
+ {% for k, v in pihole.items() %}
+ <tr>
+ <td>{{ k }}</td>
+ <td>{{ v }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
+ </section>
+</article>
+{% endblock %} \ No newline at end of file
diff --git a/edaweb/templates/template.html.j2 b/edaweb/templates/template.html.j2
new file mode 100644
index 0000000..86618bc
--- /dev/null
+++ b/edaweb/templates/template.html.j2
@@ -0,0 +1,76 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta name="abuseipdb-verification" content="3IuG6dik" />
+ <link rel='stylesheet' href="{{url_for('static', filename='style.css')}}">
+ <link rel="shortcut icon" href="/img/greenboi.jpg?h=16&w=16">
+ <title>eda.gay :: {{title}}</title>
+
+ <meta content="{{title}}" property="og:title" />
+ <meta content="Formerly chuck's" property="og:description" />
+ <meta content="https://boymoder.blog" property="og:url" />
+ <meta content="/img/greenboi.jpg?h=512&w=512" property="og:image" />
+ </head>
+ <body>
+ <div id=wrapper>
+ <header>
+ <div id="externallinks">
+ <nav>
+ <ul>
+ {% for name, link in links %}
+ <li>
+ <a href="{{link}}">{{name}}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ </nav>
+ </div>
+ <div id=headerflex>
+ <div id=headers>
+ <a href="/" id=TheTitle><h1>{{title}}</h1></a>
+ <nav id=articles>
+ <ul>
+ {% for name, link in articles %}
+ <li>
+ <a href="{{link}}">{{name}}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ </nav>
+ </div>
+ <a id=sidebarImage href="/">
+ <img alt="{{image[0]}}" src="{{image[1]}}">
+ </a>
+ </div>
+ </header>
+ <div id="content">
+ {% block content %}
+ {% endblock %}
+ </div>
+ <footer>
+ <p>this site is <a href="/thought?id=3">javascript free</a></p>
+ <a href="https://git.eda.gay/eda.gay.git/tree/LICENSE">sauce code released under gplv3</a> <a href="https://github.com/jwansek/eda.gay">alternate git link</a>
+ <div id="footer_banners">
+ <p>
+ <a href="http://jigsaw.w3.org/css-validator/check/referer">
+ <img style="border:0;width:88px;height:31px"
+ src="/img/vcss-blue.gif"
+ alt="Valid CSS!" />
+ </a>
+ </p>
+ <a href="http://www.freebsd.org/">
+ <img alt="Powered By FreeBSD" src="/img/powerani.gif">
+ </a>
+ <a href="https://web3isgoinggreat.com/">
+ <img src="/img/anti_nft_b.png" alt="anti-nft site ">
+ </a>
+ <img src="/img/www.gif">
+ <img src="/img/bob.gif">
+ <img src="/img/sun.gif">
+ <img src="/img/cloudfree.png">
+ </div>
+ <iframe src="https://john.citrons.xyz/embed?ref=eda.gay" style="padding-top:20px;margin-left:auto;display:block;margin-right:auto;max-width:732px;width:100%;height:94px;border:none;"></iframe>
+ </footer>
+ </div>
+ </body>
+</html>
diff --git a/edaweb/templates/thought.html.j2 b/edaweb/templates/thought.html.j2
new file mode 100644
index 0000000..2a5b519
--- /dev/null
+++ b/edaweb/templates/thought.html.j2
@@ -0,0 +1,29 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <aside>
+ <h4>{{ dt }}</h4>
+ {% if contents_html != "" %}
+ <h5>contents:</h5>
+ <div id="contents">
+ {{ contents_html|safe }}
+ </div>
+ {% endif %}
+ <h5>this category:</h5>
+ <ul>
+ <li><b><a href="{{'/thoughts#'+category.replace(' ', '_')}}">{{category}}</a></b></li>
+ </ul>
+ <h5>related thoughts:</h5>
+ <ul>
+ {% for id_, title, dt, category in related %}
+ <li><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></li>
+ {% endfor %}
+ </ul>
+ <h5>other categories:</h5>
+ {% for category_name in othercategories %}
+ <ul>
+ <li><a href="{{'/thoughts#'+category_name.replace(' ', '_')}}">{{category_name}}</a></li>
+ </ul>
+ {% endfor %}
+ </aside>
+ {{ md_html|safe }}
+{% endblock %} \ No newline at end of file
diff --git a/edaweb/templates/thoughts.html.j2 b/edaweb/templates/thoughts.html.j2
new file mode 100644
index 0000000..bf06f57
--- /dev/null
+++ b/edaweb/templates/thoughts.html.j2
@@ -0,0 +1,12 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ {% for category_name, thoughts in tree.items() %}
+ <h3 id="{{category_name.replace(' ', '_')}}">{{category_name}}</h3>
+ <dl>
+ {% for id_, title, dt in thoughts %}
+ <dt><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></dt>
+ <dd>{{dt}}</dd>
+ {% endfor %}
+ </dl>
+ {% endfor %}
+{% endblock %} \ No newline at end of file