Skip to content

Commit

Permalink
BGDIDIC-1893: remove quickview link
Browse files Browse the repository at this point in the history
  • Loading branch information
faselm committed Oct 21, 2024
1 parent 8de833e commit 4bd1c57
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions chsdi/templates/htmlpopup/landschaftswandel.mako
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
typ3_text = 'typ3_%s' % lang
typ4_text = 'typ4_%s' % lang
download_link = 'linkdownload_%s' % lang
def getQuickviewLink(link):
quickview_link = link.split('?')[0] + "?width=198&height=120"
return quickview_link
Expand Down Expand Up @@ -47,21 +47,12 @@
<tr style="height: 10px;"><td></td></tr>
<script>
function openQuickviewImage(image_url) {
full_url = image_url.split('?')[0] + "?width=990&height=600"
window.open('_blank').document.write('<html><head><title>${c['attributes']['gmde'] or ''}: ${c['attributes']['swissnames'] or '-'}</title></head><style>html,body{height:100%;margin:0;padding:0;}img{padding:0;display:block;margin:0 auto;max-height:100%;max-width:100%;}</style><body><img src="' + image_url + '"></body></html>');
}
</script>
<tr>
<td class="cell-left">Quickview</td>
<td class="cell-left" colspan="4">
<a href="#">
<img src="${getQuickviewLink(c['attributes']['linkbild'])}" onclick="openQuickviewImage('${c['attributes']['linkbild']}');">
</a>
<img src="${getQuickviewLink(c['attributes']['linkbild'])}">
</td>
</tr>
</tr>
</%def>

0 comments on commit 4bd1c57

Please sign in to comment.