feature: Versionsverlauf + Diff (rot/grün) komplett auf der Seite

- API: /api/history/diff liefert den Unified-Diff einer Fassung (git show)
- „Version vom <Datum>"-Pill (statt Marke oben + Git-Links) öffnet den Verlauf
  direkt auf openbureau: Liste der Fassungen → Diff rot/grün wie auf GitHub,
  Toggle „ganze Fassung anzeigen", Rücksprung. Keine externen Git-Links mehr.
- Pills neu: Dialog (Akzent-Outline, wie zuvor) + Version/Zitieren im Tag-Look
- CSS: Tag-Pills, Diff-Styling (d-add/d-del/d-hunk), alte Badge-Styles raus

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-02 02:06:43 +02:00
parent 0cc90ac295
commit f2aef5c89a
5 changed files with 122 additions and 71 deletions
-9
View File
@@ -44,15 +44,6 @@
</p>
{{ end }}
{{ end }}
{{/* Versions-Marke: macht bewusst, dass dies eine bestimmte Fassung ist,
und öffnet den Verlauf (alte Fassungen direkt auf der Seite). */}}
{{ if and (eq .Section "library") .GitInfo }}
<p class="version-line">
<button type="button" id="version-badge" class="version-badge" aria-expanded="false"
data-path="{{ .File.Path }}">Version {{ .GitInfo.AbbreviatedHash }}</button>
</p>
{{ end }}
</header>
{{/* Table of Contents */}}