Matrix-Chatfenster (read-only) im Dashboard integrieren
This commit is contained in:
@@ -83,6 +83,30 @@
|
||||
{{end}}
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<h2>Matrix-Chat</h2>
|
||||
{{if .MatrixEnabled}}
|
||||
<p class="hint">Raum: <code>{{.MatrixRoomID}}</code></p>
|
||||
{{if .MatrixError}}
|
||||
<p class="muted">Chat konnte nicht geladen werden: {{.MatrixError}}</p>
|
||||
{{else if .MatrixMessages}}
|
||||
<ul class="matrix-list">
|
||||
{{range .MatrixMessages}}
|
||||
<li>
|
||||
<div><strong>{{.Sender}}</strong></div>
|
||||
<div>{{.Body}}</div>
|
||||
<div class="muted">{{.Timestamp}}</div>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{else}}
|
||||
<p class="muted">Keine Nachrichten gefunden.</p>
|
||||
{{end}}
|
||||
{{else}}
|
||||
<p class="muted">Matrix-Chat ist nicht konfiguriert.</p>
|
||||
{{end}}
|
||||
</section>
|
||||
|
||||
<section class="card full-width">
|
||||
<h2>Kalender ab jetzt (14 Monate)</h2>
|
||||
<div class="calendar-grid">
|
||||
|
||||
Reference in New Issue
Block a user