Files
gogo-telefon/gogo/templates/dashboard/chats.html

23 lines
937 B
HTML
Raw Normal View History

{% extends "base.html" %}
{% block title %}Chat — {{ owner.tenant.name }}{% endblock %}
{% block nav %}{% include "dashboard/_nav.html" %}{% endblock %}
{% block content %}
<h1>Chat razgovori</h1>
<div class="card">
<table>
<tr><th>Vrijeme</th><th>Poruka</th><th>Ishod</th><th></th></tr>
{% for row in sessions %}
<tr>
<td class="muted">{{ row.chat.started_at.strftime('%d.%m. %H:%M') }}</td>
<td class="muted">{{ row.preview }}</td>
<td>{% if row.chat.outcome %}<span class="badge {{ row.chat.outcome }}">{{ outcome_labels.get(row.chat.outcome, row.chat.outcome) }}</span>{% endif %}</td>
<td><a class="btn small ghost" href="/dash/chats/{{ row.chat.id }}">Detalji</a></td>
</tr>
{% else %}
<tr><td colspan="4" class="muted">Još nema chat razgovora. Postavite widget na vašu web
stranicu — kod se nalazi pod <a href="/dash/agent">Asistent</a>.</td></tr>
{% endfor %}
</table>
</div>
{% endblock %}