diff options
| author | czaks <marcin@6irc.net> | 2014-05-05 17:29:34 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-05-05 17:29:34 +0200 |
| commit | 855618b2a0d367b2e2d46b2fce1926cf13e0e94e (patch) | |
| tree | 3b1e5688b86091984fcc3578a051928db07c2df4 /templates/themes/catalog/catalog.html | |
| parent | ab52741a5f6a34a81f5a0e066c95f08a4e470261 (diff) | |
| parent | 81b0612d5699f504440eb477fd9952bf4cb49525 (diff) | |
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Conflicts:
templates/themes/catalog/catalog.html
templates/themes/catalog/theme.php
Diffstat (limited to 'templates/themes/catalog/catalog.html')
| -rw-r--r-- | templates/themes/catalog/catalog.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html index 1df38287..2b8649e4 100644 --- a/templates/themes/catalog/catalog.html +++ b/templates/themes/catalog/catalog.html @@ -21,6 +21,7 @@ <h1>{{ settings.title }} (<a href="{{link}}">/{{ board }}/</a>)</h1> <div class="subtitle">{{ settings.subtitle }}</div> </header> + <ul style="display: none"> <li id="sort-bump-order" class="sort" data-sort="data-bump" data-order="asc">{% trans 'Bump order' %}</li> <li id="sort-last-reply" class="sort" data-sort="data-lastreply" data-order="asc">{% trans 'Last reply' %}</li> @@ -49,7 +50,12 @@ <li class="mix" data-reply="{{ post.reply_count }}" data-bump="{{ post.bump }}" data-lastreply="{{ post.last_reply }}" data-time="{{ post.time }}"> <div class="thread grid-li grid-size-small"> <a href="{{post.link}}"> - <img id="img-{{ post.id }}" data-subject="{% if post.subject %}{{ post.subject }}{% endif %}" data-name="{{ post.name }}" data-muhdifference="{{ post.muhdifference }}" data-last-reply="{% if post.last_reply %}{{ post.last_reply }}{% endif %}" data-last-subject="{% if post.last_reply_subject %}{{ post.last_reply_subject }}{% endif %}" data-last-name="{% if post.last_reply %}{{ post.last_reply_name }}{% endif %}" data-last-difference="{% if post.last_reply %}{{ post.last_reply_difference }}{% endif %}" src="{{post.file}}" class="{{post.board}} thread-image" title="{{post.bump|date('%b %d %H:%M')}}"> + {% if post.youtube %} + <img src="http://img.youtube.com/vi/{{ post.youtube }}/0.jpg" + {% else %} + <img src="{{post.file}}" + {% endif %} + id="img-{{ post.id }}" data-subject="{% if post.subject %}{{ post.subject }}{% endif %}" data-name="{{ post.name }}" data-muhdifference="{{ post.muhdifference }}" data-last-reply="{% if post.last_reply %}{{ post.last_reply }}{% endif %}" data-last-subject="{% if post.last_reply_subject %}{{ post.last_reply_subject }}{% endif %}" data-last-name="{% if post.last_reply %}{{ post.last_reply_name }}{% endif %}" data-last-difference="{% if post.last_reply %}{{ post.last_reply_difference }}{% endif %}" class="{{post.board}} thread-image" title="{{post.bump|date('%b %d %H:%M')}}"> </a> <p> <span class="replies"> |
