aboutsummaryrefslogtreecommitdiffstats
path: root/templates/random.html.j2
blob: 76b433bb1d17fa6607e0ecdee2c47c63979684f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 %}