feat: Show notifications on profile
This commit is contained in:
@@ -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 %}
|
@@ -0,0 +1,5 @@
|
||||
<div class="container-cards">
|
||||
{% for notification in notifications %}
|
||||
{% include "fellchensammlung/partials/partial-notification.html" %}
|
||||
{% endfor %}
|
||||
</div>
|
@@ -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>
|
Reference in New Issue
Block a user