ui: Dialog als Pill in die Provenance-Reihe, sticht durch Symbol+Akzent hervor
Dialog-Link in .provenance verschoben: → Dialog · Version · Verlauf · Zitieren in einer Reihe, gleiche Pill-Form. Dialog (prov-dialog) hebt sich durch Pfeil + Akzentfarbe (Rahmen/Text, fett) ab, Hover füllt Akzent. Zähler-Script mit ins Partial gezogen; alte .dialog-link-Klasse/-CSS entfernt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -76,25 +76,11 @@
|
||||
</ul>
|
||||
{{- end }}
|
||||
|
||||
{{/* Herkunft/Zitieren — nur bei Library-Beiträgen (lebendes Dokument). */}}
|
||||
{{/* Herkunft/Zitieren/Dialog — nur bei Library-Beiträgen (lebendes Dokument). */}}
|
||||
{{ if eq .Section "library" }}
|
||||
{{ partial "provenance.html" . }}
|
||||
<script src="/version-history.js"></script>
|
||||
{{ end }}
|
||||
|
||||
{{/* Dialog nur bei Artikeln (Library), nicht auf Seiten wie Spenden/Manifest. */}}
|
||||
{{ if eq .Section "library" }}
|
||||
<a class="dialog-link" id="dialog-link" data-thread="{{ .RelPermalink }}" href="/dialog/?thread={{ .RelPermalink }}">→ Dialog</a>
|
||||
<script>
|
||||
(function () {
|
||||
var l = document.getElementById('dialog-link'); if (!l) return;
|
||||
fetch('/api/comments?thread=' + encodeURIComponent(l.dataset.thread))
|
||||
.then(function (r) { return r.ok ? r.json() : []; })
|
||||
.then(function (d) { var n = d.filter(function (c) { return !c.deleted; }).length; if (n) l.textContent = '→ Dialog · ' + n; })
|
||||
.catch(function () {});
|
||||
})();
|
||||
</script>
|
||||
{{ end }}
|
||||
</article>
|
||||
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user