show number of subs per class

This commit is contained in:
2020-08-06 08:54:19 +02:00
parent 3c31bdabb5
commit 9fcd34429c
5 changed files with 97 additions and 76 deletions
+11 -12
View File
@@ -1,17 +1,16 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<style>
</style>
<meta charset="utf-8">
<title>Vertretungsplan Uhlandshöhe</title>
</head>
<head>
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<style>
</style>
<meta charset="utf-8">
<title>Vertretungsplan Uhlandshöhe</title>
</head>
<body>
{{~> page}}
<h3> End</h3>
</body>
<body>
{{~> page}}
</body>
</html>
</html>
+6 -3
View File
@@ -2,9 +2,12 @@
<h1>Vertretungen</h1>
<div class="grid-container">
{{#each klassen}}
<div class="grid-item">
<h2>{{this.0.klassen_id}}. {{this.0.stufe}}{{this.0.gruppe}} <br />{{this.1}}</h2>
</div>
<a href="/klasse/{{this.0.klassen_id}}">
<div class="grid-item">
<h2>{{this.0.stufe}}{{this.0.gruppe}}</h2>
<div class="summary"><br />{{length this.1}} vertreten</div>
</div>
</a>
{{/each}}
</div>
{{/inline}}