Try to fix metadata stuff again (does not work)

This commit is contained in:
Kylian Schmidt
2025-07-21 15:33:33 +02:00
parent 7a9275819a
commit 465f9b6dc6
7 changed files with 26 additions and 62 deletions
+5 -1
View File
@@ -41,7 +41,11 @@
<a href="{{ item.pdf_href }}">
<img src="{{ item.png_href }}" alt="{{ item.name }}">
</a>
<button class="metadata-btn" onclick="event.stopPropagation(); showMetadataPopup(this, '{{ item.name|e }}', {{ (item.metadata or {})|tojson }})" title="View metadata">
<button class="metadata-btn"
data-plot-name="{{ item.name|e }}"
data-metadata="{{ item.metadata|tojson|e if item.metadata is not none and item.metadata|length > 0 else '{}' }}"
onclick="event.stopPropagation(); showMetadataPopup(this, this.dataset.plotName, JSON.parse(this.dataset.metadata))"
title="View metadata">
</button>
<div class="plot-name" title="{{ item.name }}">{{ item.name }}</div>