azube/core/templates/index.html

33 lines
899 B
HTML
Raw Normal View History

2024-12-02 16:49:45 +01:00
<html>
<head>
<title>Azube</title>
2024-12-03 15:15:45 +01:00
<script src="https://cdn.tailwindcss.com"></script>
2024-12-02 16:49:45 +01:00
</head>
<body>
{{ user.display_name }}
<h1> Deine Berichtshefte </h1>
{% if reports|length == 0 %}
<button onclick="location = '/write'">
Füge dein erstes Berichtsheft hinzu!
</button>
{% endif %}
2024-12-03 15:15:45 +01:00
<div class="min-h-screen bg-gray-100 flex items-center justify-center">
2024-12-02 16:49:45 +01:00
{% for report in reports %}
2024-12-03 15:15:45 +01:00
<div class="{{ style.card }}">
<a href="/report/{{ report.id }}"> {{ report }} </a>
2024-12-02 16:49:45 +01:00
</div>
2024-12-03 15:15:45 +01:00
{% if forloop.last %}
{% if report.week != week_now %}
</div>
<button onclick="location = '/write'" class="{{ style.red_btn }}"> Berichtsheft schreiben </button>
{% endif %}
{% endif %}
2024-12-02 16:49:45 +01:00
{% endfor %}
2024-12-03 15:15:45 +01:00
</div>
2024-12-02 16:49:45 +01:00
</body>
</html>