This commit is contained in:
cangui 2025-05-09 15:31:20 +02:00
parent 325884af90
commit 845e8e7b57
3 changed files with 4 additions and 5 deletions

View File

@ -53,7 +53,7 @@ func AdminConversationPage(db *gorm.DB) http.HandlerFunc {
data := map[string]interface{}{
"UserID": idStr,
}
renderTemplate(w, "admin_conv", data)
renderTemplate(w, "admin_conversations", data)
}
}

View File

@ -1,4 +1,4 @@
{{ define "admin_conv.pages.tmpl" }}
{{ define "admin_conversations.pages.tmpl" }}
<h2>Historique des messages de l'utilisateur #{{ .UserID }}</h2>
<div class="mb-3">
@ -30,8 +30,7 @@
hx-swap="innerHTML">
</tbody>
</table>
<hr>
<h3>Conversation complète</h3>
<div id="threadViewer" class="mt-3"></div>
{{ end }}
{{ end }}

View File

@ -43,4 +43,4 @@
margin-bottom: 0.25rem;
}
</style>
{{ end }}
{{ end }}