aboutsummaryrefslogtreecommitdiffstats
path: root/templates/random.jinja
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-12-22 19:35:12 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-12-22 19:35:12 +0000
commit95a5c95842de869cfd7c8e9d1c824dc0780af949 (patch)
treee1f9f306b1058fe256d88465a833cbf4129951f8 /templates/random.jinja
parent1f8697b0b4680a146a23e451238c7d76239b97b3 (diff)
downloadboymoder.blog-95a5c95842de869cfd7c8e9d1c824dc0780af949.tar.gz
boymoder.blog-95a5c95842de869cfd7c8e9d1c824dc0780af949.zip
renamed all template files
Diffstat (limited to 'templates/random.jinja')
-rw-r--r--templates/random.jinja22
1 files changed, 22 insertions, 0 deletions
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 %}
+ <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