Skip to content
Snippets Groups Projects
Commit c24abcb7 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

views/index: Show previews

parent 44c9ed60
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,11 @@ main { ...@@ -120,6 +120,11 @@ main {
.sign img { .sign img {
width: 100%; width: 100%;
} }
& div {
display: flex;
flex-direction: column;
}
} }
.preview { .preview {
...@@ -130,3 +135,11 @@ main { ...@@ -130,3 +135,11 @@ main {
background-color: #fff; background-color: #fff;
color: #000; color: #000;
} }
.preview-small {
width: 15rem;
}
.preview-label {
place-self: center;
}
...@@ -8,7 +8,18 @@ ...@@ -8,7 +8,18 @@
<h2>Existierende Schilder:</h2> <h2>Existierende Schilder:</h2>
<div class="sign-grid"> <div class="sign-grid">
{%- for schild in schilder %} {%- for schild in schilder %}
<a class="sign" href="{{ url_for('.schild', ident=schild.ident) }}">{{ schild.title }}</a> <a class="sign" href="{{ url_for('.schild', ident=schild.ident) }}">
<div>
<iframe
class="preview preview-small"
src="{{ url_for('instance.schild_html', ident=schild.ident) }}"
id="preview:{{ schild.ident }}">
</iframe>
<label for="preview:{{ schild.ident }}" class="preview-label">
{{ schild.title }}
</label>
</div>
</a>
{%- endfor %} {%- endfor %}
</div> </div>
{% endblock %} {% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment