Skip to content

Commit cf895c7

Browse files
committed
use date created if exists
1 parent 1997559 commit cf895c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/templates/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<img alt="{{ type }}" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ type }} charts" class="img-fluid d-inline-block" style="max-width: 30px; filter: invert(0);" src="{% static 'images/types/'|add:type|add:'.png' %}">
3535
{% endfor %}
3636
</td>
37-
<td class="small">{{ pack.date_scanned|date:"Y-m-d" }}</td>
37+
<td class="small">{% if pack.date_created %}{{ pack.date_created|date:"Y-m-d"}} {% else %}{{ pack.date_scanned|date:"Y-m-d" }}{% endif %}</td>
3838
<td class="text-center"><a href="http://mirror.reenigne.net/simfiles/{{ pack.name }}.zip"><strong class="bi bi-download"></strong></a></td>
3939
<td data-sort="{{ pack.style }}"></td>
4040
</tr>

0 commit comments

Comments
 (0)