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{}{ data := map[string]interface{}{
"UserID": idStr, "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> <h2>Historique des messages de l'utilisateur #{{ .UserID }}</h2>
<div class="mb-3"> <div class="mb-3">
@ -30,8 +30,7 @@
hx-swap="innerHTML"> hx-swap="innerHTML">
</tbody> </tbody>
</table> </table>
<hr> <hr>
<h3>Conversation complète</h3> <h3>Conversation complète</h3>
<div id="threadViewer" class="mt-3"></div> <div id="threadViewer" class="mt-3"></div>
{{ end }} {{ end }}

View File

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