etiquette/frontends/etiquette_flask/templates/search_embed.html

30 lines
704 B
HTML
Raw Normal View History

2021-06-22 20:38:08 +00:00
<!DOCTYPE html>
<html class="theme_{{theme}}">
<head>
<link rel="stylesheet" href="/static/css/common.css">
<link rel="stylesheet" href="/static/css/etiquette.css">
<link rel="stylesheet" href="/static/css/cards.css">
<style>
body
{
background-color: initial;
}
</style>
</head>
<body>
<div>
{% import "cards.html" as cards %}
{% for result in results %}
{% if result.__class__.__name__ == 'Photo' %}
{{cards.create_photo_card(result, view=search_kwargs["view"])}}
{% elif result.__class__.__name__ == 'Album' %}
{{cards.create_album_card(result, view=search_kwargs["view"])}}
{% endif %}
{% endfor %}
</div>
</body>
</html>