diff options
Diffstat (limited to 'cgi/templates/board.html')
-rw-r--r-- | cgi/templates/board.html | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/cgi/templates/board.html b/cgi/templates/board.html index b338cfe..486c380 100644 --- a/cgi/templates/board.html +++ b/cgi/templates/board.html @@ -217,17 +217,19 @@ <small>Imagen miniatura</small> <?py #endif ?> </div><?py #div .fs ?> - <a target="_blank" href="#{images_url}#{board}/src/#{post['file']}" id="thumb#{post['id']}"> - <?py if post['thumb'].startswith('mime'): ?> - <img class="thumb" alt="#{post['id']}" src="/static/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /> - <?py elif post['file'][-3:] == 'gif': ?> - <img class="thumb" alt="#{post['id']}" src="#{images_url}#{board}/src/#{post['file']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /> - <?py else: ?> - <img class="thumb" alt="#{post['id']}" src="#{images_url}#{board}/thumb/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /> - <?py #endif ?> - </a> <?py #endif ?> </div><?py #div .info ?> + <?py if post['parentid'] and post['file']: ?> + <a target="_blank" href="#{images_url}#{board}/src/#{post['file']}" id="thumb#{post['id']}"> + <?py if post['thumb'].startswith('mime'): ?> + <img class="thumb" alt="#{post['id']}" src="/static/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /> + <?py elif post['file'][-3:] == 'gif': ?> + <img class="thumb" alt="#{post['id']}" src="#{images_url}#{board}/src/#{post['file']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /> + <?py else: ?> + <img class="thumb" alt="#{post['id']}" src="#{images_url}#{board}/thumb/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /> + <?py #endif ?> + </a> + <?py #endif ?> <?py if post['thumb_width'] and post['parentid']: ?> <blockquote style="margin-left:#{post['thumb_width']+40}px;">#{post['message']}</blockquote> <?py else: ?> |