Display date for notifications

This commit is contained in:
Bat 2018-07-26 16:14:01 +02:00
parent 7a6c01fec5
commit 65e0d72a73

View File

@ -18,6 +18,7 @@
</a></h3>
<p><a href="{{ notification.object.post.url }}">{{ notification.object.post.post.title }}</a></p>
</main>
<p><small>{{ notification.creation_date | date(format="%B %e, %H:%m") }}</small></p>
{% elif notification.kind == "FOLLOW" %}
<i class="fa fa-user-plus left-icon"></i>
@ -26,6 +27,7 @@
{{ "{{ user }} is now following you." | _(user=notification.object.follower.display_name | escape) }}
</a></h3>
</main>
<p><small>{{ notification.creation_date | date(format="%B %e, %H:%m") }}</small></p>
{% elif notification.kind == "LIKE" %}
<i class="fa fa-heart left-icon"></i>
@ -35,6 +37,7 @@
</h3>
<p><a href="{{ notification.object.post.url }}">{{ notification.object.post.post.title }}</a></p>
</main>
<p><small>{{ notification.creation_date | date(format="%B %e, %H:%m") }}</small></p>
{% elif notification.kind == "MENTION" %}
<i class="fa fa-at left-icon"></i>
@ -43,6 +46,7 @@
{{ "{{ user }} mentioned you." | _(user=notification.object.user.display_name | escape) }}
</a></h3>
</main>
<p><small>{{ notification.creation_date | date(format="%B %e, %H:%m") }}</small></p>
{% elif notification.kind == "RESHARE" %}
<i class="fa fa-retweet left-icon"></i>
@ -52,6 +56,7 @@
</h3>
<p><a href="{{ notification.object.post.url }}">{{ notification.object.post.post.title }}</a></p>
</main>
<p><small>{{ notification.creation_date | date(format="%B %e, %H:%m") }}</small></p>
{% endif %}
</div>