diff options
author | Choom | 2022-12-23 23:38:46 -0300 |
---|---|---|
committer | Choom | 2022-12-24 11:53:43 -0300 |
commit | e41d17c6802abd247f6a4e113799ba14b7402258 (patch) | |
tree | 02302f019455332828a7bab11926d04b1ee8f508 /cgi/templates/board.html | |
parent | 29c5d154c31de627ecbb913430e70842525ae6ac (diff) | |
download | weabot-e41d17c6802abd247f6a4e113799ba14b7402258.tar.gz weabot-e41d17c6802abd247f6a4e113799ba14b7402258.tar.xz weabot-e41d17c6802abd247f6a4e113799ba14b7402258.zip |
Mejor expansion de imagenes
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: ?> |