22 lines
745 B
HTML
22 lines
745 B
HTML
{% extends "base.html" %}
|
|
|
|
{% load humanize %}
|
|
|
|
{% block title %}Sie haben {{ num_unread | apnumber }} neue Nachricht{{ num_unread | pluralize:"en" }}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% for message in page %}
|
|
<a href="{% if message.from_helper %}{% url 'team:helper' message.from_helper.pk %}{% else %}{% url 'team:conversation' message.sender %}{% endif %}">
|
|
<div class="message{% if not message.read %} is-info{% endif %} mb-5">
|
|
<div class="message-header">
|
|
{{ message.display_sender }} <small>{{ message.created_at | naturaltime }}</small>
|
|
</div>
|
|
<div class="message-body">
|
|
{{ message.content }}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
{% endfor %}
|
|
{% include "pagination.html" %}
|
|
{% endblock %}
|