Bewertung_fix und Veröffentlichungszeit

This commit is contained in:
ben8
2025-06-27 15:17:27 +02:00
parent 1014ea37ec
commit 93e166ece0
11 changed files with 195 additions and 50 deletions

View File

@@ -1,6 +1,6 @@
{% extends 'base.html' %}
{% load static %}
{% load humanize %}
{% block extra_css %}
<style>
@@ -145,6 +145,7 @@
</div>
<!-- Authors -->
<!--
{% if quiz.authors.all %}
<div class="flex items-center gap-2 text-sm mt-2">
<svg class="w-4 h-4 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -156,7 +157,20 @@
{% endfor %}
</span>
</div>
{% endif %}
{% endif %}
-->
<!-- Zeit-->
{% if quiz.published_at != None %}
<div class="flex items-center gap-2 ">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="text-green-400 size-4">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
</svg>
<span class="text-gray-800 text-sm "><span class="font-medium">{{ quiz.published_at |naturaltime }}</span> <span class="text-sm">erst. veröffentlicht</span> </span>
</div>
{% endif %}
<!-- Action Buttons -->
<div class="flex justify-between items-center gap-2 mt-3 border-t pt-3">