Add cardview to search results too

This commit is contained in:
robrobinbin 2021-01-14 21:53:07 +01:00
parent d19e73f059
commit 45660816ce

View File

@ -38,7 +38,7 @@
{% if post.flags.nsfw && prefs.hide_nsfw == "on" %} {% if post.flags.nsfw && prefs.hide_nsfw == "on" %}
{% else if post.title != "Comment" %} {% else if post.title != "Comment" %}
<div class="post"> <div class="post {% if prefs.layout == "card" && post.post_type == "image" %}card_post{% endif %}">
<div class="post_left"> <div class="post_left">
<p class="post_score">{{ post.score }}</p> <p class="post_score">{{ post.score }}</p>
{% if post.flags.nsfw %}<div class="nsfw">NSFW</div>{% endif %} {% if post.flags.nsfw %}<div class="nsfw">NSFW</div>{% endif %}
@ -63,7 +63,6 @@
</p> </p>
</div> </div>
<!-- POST THUMBNAIL -->
<!-- POST MEDIA/THUMBNAIL --> <!-- POST MEDIA/THUMBNAIL -->
{% if prefs.layout == "card" && post.post_type == "image" %} {% if prefs.layout == "card" && post.post_type == "image" %}
<img class="post_media" src="{{ post.media }}"/> <img class="post_media" src="{{ post.media }}"/>