diff options
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/templates/board.html | 20 | ||||
-rw-r--r-- | cgi/templates/board.jp.html | 24 |
2 files changed, 24 insertions, 20 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: ?> diff --git a/cgi/templates/board.jp.html b/cgi/templates/board.jp.html index 6bc5e19..ffb9d67 100644 --- a/cgi/templates/board.jp.html +++ b/cgi/templates/board.jp.html @@ -219,17 +219,19 @@ <small>サムネ表示</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 ?> + <?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: ?> @@ -275,4 +277,4 @@ <div class="pg">#{pagenav}</div> <?py #endif ?> -<?py include('templates/base_bottom.html') ?>
\ No newline at end of file +<?py include('templates/base_bottom.html') ?> |