summaryrefslogtreecommitdiff
path: root/templates/themes/catalog/catalog.html
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-05-04 01:20:12 +0200
committerczaks <marcin@6irc.net>2014-05-04 01:20:12 +0200
commit73eb8c6b58d61fdea8dcfb7747daa4902a42838a (patch)
tree70b88ec750ca102d2601d35f69cc4dc58dc843f8 /templates/themes/catalog/catalog.html
parentbac23d22f89aba8773a52b8e14566e24060f304f (diff)
quick & dirty youtube thumbnails in catalog support
Diffstat (limited to 'templates/themes/catalog/catalog.html')
-rw-r--r--templates/themes/catalog/catalog.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html
index 3bfd3e23..c69eb7f7 100644
--- a/templates/themes/catalog/catalog.html
+++ b/templates/themes/catalog/catalog.html
@@ -20,12 +20,16 @@
{% for post in recent_posts %}
<div class="thread">
<a href="{{post.link}}">
+ {% if post.youtube %}
+ <img src="http://img.youtube.com/vi/{{ post.youtube }}/0.jpg" class="{{post.board}}" title="{{post.bump|date('%b %d %H:%M')}}">
+ {% elseif post.file %}
<img src="{{post.file}}" class="{{post.board}}" title="{{post.bump|date('%b %d %H:%M')}}">
- </a>
+ {% endif %}
<span class="replies">
<strong>{% trans %}1 reply{% plural post.reply_count %}{{ count }} replies{% endtrans %}</strong><br/>
{{ post.body }}
</span>
+ </a>
</div>
{% endfor %}
</ul>