Browse Source

Add optional modifier: <tinyboard is_file> to tell Tinyboard that even though an image might have a thumbnail, it could still be a non-image upload

pull/40/head
Michael Foster 11 years ago
parent
commit
dcf97d6b5b
  1. 2
      templates/post_reply.html
  2. 2
      templates/post_thread.html

2
templates/post_reply.html

@ -91,7 +91,7 @@
) )
</span> </span>
</p> </p>
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' %} class="file"{% endif %}> <a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' or post.modifiers['is_file'] == '1' %} class="file"{% endif %}>
<img class="post-image" src=" <img class="post-image" src="
{% if post.thumb == 'file' %} {% if post.thumb == 'file' %}
{{ config.root }} {{ config.root }}

2
templates/post_thread.html

@ -41,7 +41,7 @@
{% endif %} {% endif %}
) )
</span></p> </span></p>
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' %} class="file"{% endif %}> <a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' or post.modifiers['is_file'] == '1' %} class="file"{% endif %}>
<img class="post-image" src=" <img class="post-image" src="
{% if post.thumb == 'file' %} {% if post.thumb == 'file' %}
{{ config.root }} {{ config.root }}

Loading…
Cancel
Save