{{ define "admin_conversations_rows.pages.tmpl" }}
{{ range .Conversations }}
<tr hx-get="/admin/user/{{ $.UserID }}/conversation-thread"
    hx-target="#threadViewer"
    hx-swap="innerHTML">
  <td>{{ .CreatedAt.Format "2006-01-02 15:04:05" }}</td>
  <td>{{ .Direction }}</td>
  <td>{{ .From }}</td>
  <td>{{ .Type }}</td>
  <td>{{ .Content }}</td>
  <td>{{ .Status }}</td>
  <td>
    {{ if .ReadAt }}
    {{ if not .ReadAt.IsZero }}
      {{ .ReadAt.Format "2006-01-02 15:04:05" }}
    {{ else }}
      -
    {{ end }}
  {{ else }}
    -
  {{ end }}
  
  </td>
</tr>
{{ end }}
{{ end }}
