Implement incoming_message view and show message history on helper page
parent
e9e263d59d
commit
eb681d31b0
@ -0,0 +1,23 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load humanize %}
|
||||
|
||||
{% block title %}Nachricht von {{ message.sender }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h3 class="title">Nachricht von {{ message.sender }}{% if not message.read %} (ungelesen){% endif %}</h3>
|
||||
<div class="display mb-5">
|
||||
<p>{{ message.created_at | naturaltime }}</p>
|
||||
</div>
|
||||
<div class="message mb-5">
|
||||
<div class="message-body">
|
||||
{{ message.content }}
|
||||
</div>
|
||||
</div>
|
||||
{% if not message.read %}
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
<button class="button is-info" type="submit">Als gelesen markieren</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Reference in New Issue