From 845e8e7b578d95062b9ca6f3c0ccc5496333431a Mon Sep 17 00:00:00 2001 From: cangui Date: Fri, 9 May 2025 15:31:20 +0200 Subject: [PATCH] DDDD --- backend/renders/renders.go | 2 +- ...{admin_conv.pages.tmpl => admin_conversations.pages.tmpl} | 5 ++--- frontend/templates/admin_conversations_thread.pages.tmpl | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) rename frontend/templates/{admin_conv.pages.tmpl => admin_conversations.pages.tmpl} (94%) diff --git a/backend/renders/renders.go b/backend/renders/renders.go index dadf22c..7fb2163 100644 --- a/backend/renders/renders.go +++ b/backend/renders/renders.go @@ -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) } } diff --git a/frontend/templates/admin_conv.pages.tmpl b/frontend/templates/admin_conversations.pages.tmpl similarity index 94% rename from frontend/templates/admin_conv.pages.tmpl rename to frontend/templates/admin_conversations.pages.tmpl index 9762eea..3f128f9 100644 --- a/frontend/templates/admin_conv.pages.tmpl +++ b/frontend/templates/admin_conversations.pages.tmpl @@ -1,4 +1,4 @@ -{{ define "admin_conv.pages.tmpl" }} +{{ define "admin_conversations.pages.tmpl" }}

Historique des messages de l'utilisateur #{{ .UserID }}

@@ -30,8 +30,7 @@ hx-swap="innerHTML"> -

Conversation complète

-{{ end }} +{{ end }} \ No newline at end of file diff --git a/frontend/templates/admin_conversations_thread.pages.tmpl b/frontend/templates/admin_conversations_thread.pages.tmpl index b809ec6..869e88c 100644 --- a/frontend/templates/admin_conversations_thread.pages.tmpl +++ b/frontend/templates/admin_conversations_thread.pages.tmpl @@ -43,4 +43,4 @@ margin-bottom: 0.25rem; } -{{ end }} +{{ end }} \ No newline at end of file