feat: Show notifications on profile

This commit is contained in:
2024-08-02 20:44:33 +02:00
parent 198fb88bfd
commit 63f542da81
5 changed files with 27 additions and 4 deletions

View File

@@ -14,7 +14,11 @@
{% endif %}
{% if user.id is request.user.id %}
<h2>{% translate 'Benachrichtigungen' %}</h2>
{% include "fellchensammlung/lists/list-notifications.html" %}
<h2>{% translate 'Meine Vermittlungen' %}</h2>
{% include "fellchensammlung/lists/list-adoption-notices.html" %}
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,5 @@
<div class="container-cards">
{% for notification in notifications %}
{% include "fellchensammlung/partials/partial-notification.html" %}
{% endfor %}
</div>

View File

@@ -0,0 +1,12 @@
{% load i18n %}
{% load custom_tags %}
<div class="notification">
<div class="notification-header">
<b>{{ notification.title }}</b>
{{ notification.created_at }}
<a class="adoption-card-report-link" href=""><i class="fa-solid fa-check"></i></a>
</div>
<p>
{{ notification.text | render_markdown }}
</p>
</div>