feat: make timestamp nicer

This commit is contained in:
moanos [he/him] 2024-08-03 09:05:57 +02:00
parent 0b08647c7e
commit 4358d37f37
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{% load custom_tags %} {% load custom_tags %}
{% load i18n %} {% load i18n %}
<div class="card"> <div class="card">

View File

@ -3,7 +3,7 @@
<div class="comment"> <div class="comment">
<div class="comment-header"> <div class="comment-header">
<b>{{ comment.user }}</b> <b>{{ comment.user }}</b>
{{ comment.created_at }} <i class="card-timestamp">{{ comment.created_at }}</i>
<a class="adoption-card-report-link" href="{{ comment.get_report_url }}"><i class="fa-solid fa-flag"></i></a> <a class="adoption-card-report-link" href="{{ comment.get_report_url }}"><i class="fa-solid fa-flag"></i></a>
</div> </div>
<p> <p>

View File

@ -3,7 +3,7 @@
<div class="notification"> <div class="notification">
<div class="notification-header"> <div class="notification-header">
<a href="{{ notification.url }}" ><b>{{ notification.title }}</b></a> <a href="{{ notification.url }}" ><b>{{ notification.title }}</b></a>
{{ notification.created_at }} <i class="card-timestamp">{{ notification.created_at }}</i>
<form class="notification-card-mark-read" method="POST"> <form class="notification-card-mark-read" method="POST">
{% csrf_token %} {% csrf_token %}
<input type="hidden" name="action" value="notification_mark_read"> <input type="hidden" name="action" value="notification_mark_read">