quick & dirty youtube thumbnails in catalog support
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user