diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-18 18:17:12 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-18 18:17:12 +1000 |
| commit | dcf97d6b5b5715388412f18544c2e63f877ba19f (patch) | |
| tree | bae98d3bf6ba8f0282c54254f4247202ee96c6c1 | |
| parent | fa4dec36db3d593caab6774a308a12617aeb7374 (diff) | |
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
| -rw-r--r-- | templates/post_reply.html | 2 | ||||
| -rw-r--r-- | templates/post_thread.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/post_reply.html b/templates/post_reply.html index 65fd576c..bc3d36cd 100644 --- a/templates/post_reply.html +++ b/templates/post_reply.html @@ -91,7 +91,7 @@ ) </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=" {% if post.thumb == 'file' %} {{ config.root }} diff --git a/templates/post_thread.html b/templates/post_thread.html index 23a05e81..d5d6016e 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -41,7 +41,7 @@ {% endif %} ) </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=" {% if post.thumb == 'file' %} {{ config.root }} |
