diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/renderer.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/renderer.go b/frontend/renderer.go index f03fe77..0a2b7e9 100644 --- a/frontend/renderer.go +++ b/frontend/renderer.go | |||
@@ -5,6 +5,20 @@ import ( | |||
5 | "net/http" | 5 | "net/http" |
6 | ) | 6 | ) |
7 | 7 | ||
8 | // Action ist die Aktion auf einer Card. | ||
9 | type Action struct { | ||
10 | Name string | ||
11 | Link string | ||
12 | } | ||
13 | |||
14 | // Card ist eine Karte im Materialize-Design. | ||
15 | type Card struct { | ||
16 | Title string | ||
17 | Description string | ||
18 | Size string | ||
19 | Actions []Action | ||
20 | } | ||
21 | |||
8 | // Renderer rendert Seiten. | 22 | // Renderer rendert Seiten. |
9 | type Renderer struct { | 23 | type Renderer struct { |
10 | templates *template.Template | 24 | templates *template.Template |