Files
TUM-typst4ei/templates/index.html.j2
2026-01-25 23:20:56 +01:00

114 lines
4.1 KiB
Django/Jinja

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/main.css">
<title>typst4ei</title>
</head>
<body>
{% include "navbar.j2" %}
<h1>typst4ei</h1>
<p>Eine Sammlung von Formelsammlung für/von EI Stundenten der TUM</p>
<p>
Disclaimer: Die Richtigkeit des Materials kann nicht garantiert werden.
Wir wissen auch nicht was wir tun. Nutzt die Formelsammlungen auf eigene Gefahr.
Aber Feedback und Korrekturen sind immer willkommen!
</p>
{% for item in cats %}
<h2>{{ item[0] }}. Semester</h2>
<table>
<thead>
<tr>
<th>Title</th>
<th>Autor</th>
<th>Repo</th>
<th>Upload Date</th>
<th>Git commit</th>
</tr>
</thead>
<tbody>
{% for module in item[1] %}
{% for item in module[1] %}
<tr>
<td>
<a href="{{ item.url }}">{{ module[0] }}</a>
</td>
<td>
{% if item.author %}
{{ item.author }}
{% else %}
N/A
{% endif %}
</td>
<td>
{% if item.git_repo %}
<a href="{{ item.git_repo }}">{{ item.git_repo_type }}</a>
{% else %}
N/A
{% endif %}
</td>
<td>
{{ item.date }}
</td>
<td>
{% if item.git_repo %}
{{ item.commit }}
{% endif %}
</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
{% endfor%}
{% if no_cat %}
<h2>Verschiedenes</h2>
<table>
<thead>
<tr>
<th>Title</th>
<th>Repo</th>
<th>Upload Date</th>
<th>Git commit</th>
</tr>
</thead>
<tbody>
{% for item in no_cat %}
<tr>
<td>
<a href="{{ item.url }}">{{ item.title }}</a>
{% if item.author %}
<br>by {{ item.author }}
{% endif %}
</td>
<td>
{% if item.git_repo %}
<a href="{{ item.git_repo }}">{{ item.git_repo_type }}</a>
{% else %}
N/A
{% endif %}
</td>
<td>
{{ item.date }}
</td>
<td>
{% if item.git_repo %}
{{ item.commit }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</body>
</html>