sddsds
This commit is contained in:
parent
5771070f24
commit
6c4a1aa2b2
@ -1,6 +1,5 @@
|
|||||||
{{ define "admin_conversations_thread.pages.tmpl" }}
|
{{ define "admin_conversations_thread.pages.tmpl" }}
|
||||||
<div class="chat-thread">
|
<div class="chat-thread">
|
||||||
{{ $parentMap := dict }}
|
|
||||||
{{ range .Conversations }}
|
{{ range .Conversations }}
|
||||||
{{ if not .ParentID }}
|
{{ if not .ParentID }}
|
||||||
<div class="bubble {{ if eq .Direction "inbound" }}left{{ else }}right{{ end }}">
|
<div class="bubble {{ if eq .Direction "inbound" }}left{{ else }}right{{ end }}">
|
||||||
@ -10,7 +9,6 @@
|
|||||||
<div class="content">{{ .Content }}</div>
|
<div class="content">{{ .Content }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{/* Afficher les enfants */}}
|
|
||||||
{{ range $i, $c := $.Conversations }}
|
{{ range $i, $c := $.Conversations }}
|
||||||
{{ if and $c.ParentID (eq (printf "%d" $c.ParentID) (printf "%d" .ID)) }}
|
{{ if and $c.ParentID (eq (printf "%d" $c.ParentID) (printf "%d" .ID)) }}
|
||||||
<div class="bubble reply {{ if eq $c.Direction "inbound" }}left{{ else }}right{{ end }}">
|
<div class="bubble reply {{ if eq $c.Direction "inbound" }}left{{ else }}right{{ end }}">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user