Messages now sending/loading and populating on message dropdown
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
{{ range .Messages }}
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<div>
|
||||
<a href="/account/messages/{{ .ID }}" class="fw-bold text-dark">{{ .Subject }}</a><br>
|
||||
<a href="/account/messages/read?={{ .ID }}" class="fw-bold text-dark">{{ .Subject }}</a><br>
|
||||
<small class="text-muted">{{ .CreatedAt.Format "02 Jan 2006 15:04" }}</small>
|
||||
</div>
|
||||
<form method="POST" action="/account/messages/archive" class="m-0">
|
||||
@@ -19,7 +19,6 @@
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
<!-- (Optional) Pagination if you have helpers wired -->
|
||||
<nav>
|
||||
<ul class="pagination">
|
||||
{{ if gt .CurrentPage 1 }}
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
<i class="bi bi-person-circle me-2 fs-4 text-secondary"></i>
|
||||
<div>
|
||||
<div class="fw-semibold">{{ $m.Subject }}</div>
|
||||
<small class="text-muted">{{ truncate $m.Message 40 }}</small>
|
||||
<small class="text-muted">{{ truncate $m.Body 40 }}</small>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user