aboutsummaryrefslogtreecommitdiffstats
path: root/templates/random.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-08-25 14:19:10 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-08-25 14:19:10 +0000
commit787a9421d1a61229b838dcbf17734c42172800f7 (patch)
tree014297140526a59232dbc5a23e5d89e374289a59 /templates/random.html.j2
parenta86a5fa2f075ec455aa5101acff9c3fda290294d (diff)
downloadeda.gay-787a9421d1a61229b838dcbf17734c42172800f7.tar.gz
eda.gay-787a9421d1a61229b838dcbf17734c42172800f7.zip
Renamed template files, added active for torrents
Diffstat (limited to 'templates/random.html.j2')
-rwxr-xr-xtemplates/random.html.j222
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/random.html.j2 b/templates/random.html.j2
new file mode 100755
index 0000000..76b433b
--- /dev/null
+++ b/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