Finsihed
This commit is contained in:
53
templates/index.html.j2
Normal file
53
templates/index.html.j2
Normal file
@@ -0,0 +1,53 @@
|
||||
<!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>FS²</title>
|
||||
</head>
|
||||
<body>
|
||||
{% include "navbar.j2" %}
|
||||
|
||||
<h1>Formel(sammlung)²</h1>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Repo</th>
|
||||
<th>Upload Date</th>
|
||||
<th>Git commit</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in items %}
|
||||
<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.git_commit }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user