aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2015-12-28 18:56:47 (UTC)
committerrtz12 <koenig@fagott.pw>2015-12-28 18:56:47 (UTC)
commiteb03000339859fc3b5869cb8906f1e4f1022a52e (patch)
treeb238d003268dfb9c93dfa80635ad8263cb67b2b8 /views
parent23f73a60a4cf4621dd5951bfe6601a8c154cad07 (diff)
parent647c105dadfa58af6cfa80d3f359d43cfa5d5cf2 (diff)
Merge branch 'master' of projekte.fagott.pw:grilist
Diffstat (limited to 'views')
-rw-r--r--views/dashboard.html10
-rw-r--r--views/gril.html42
-rw-r--r--views/navbar.html3
3 files changed, 52 insertions, 3 deletions
diff --git a/views/dashboard.html b/views/dashboard.html
index f2d410d..0551285 100644
--- a/views/dashboard.html
+++ b/views/dashboard.html
@@ -16,12 +16,16 @@
16 <div class="col s12 m6 l4"> 16 <div class="col s12 m6 l4">
17 <div class="card white"> 17 <div class="card white">
18 <div class="card-content black-text"> 18 <div class="card-content black-text">
19 <span class="card-title">{{ $card.Title }}</span> 19 <span class="card-title">{{ $card.Title | html }}</span>
20 <p>{{ $card.Description }}</p> 20 <p>{{ $card.Description | html }}</p>
21 </div> 21 </div>
22 <div class="card-action"> 22 <div class="card-action">
23 {{ range $action := $card.Actions }} 23 {{ range $action := $card.Actions }}
24 <a href="{{ $action.Link }}">{{ $action.Name }}</a> 24 {{ if $action.Disabled }}
25 <span>{{ $action.Name | html }}</span>
26 {{ else }}
27 <a href="{{ $action.Link }}">{{ $action.Name | html }}</a>
28 {{ end }}
25 {{ end }} 29 {{ end }}
26 </div> 30 </div>
27 </div> 31 </div>
diff --git a/views/gril.html b/views/gril.html
index 3983061..c7ecbdc 100644
--- a/views/gril.html
+++ b/views/gril.html
@@ -16,6 +16,48 @@
16 {{ $tag }} 16 {{ $tag }}
17 </div> 17 </div>
18 {{ end }} 18 {{ end }}
19 <br />
20 <br />
21 <div class="row">
22 {{ if $gril.Birthday.Valid }}
23 <div class="col s6 m2 l2">
24 <div class="card">
25 <div class="card-content purple-text text-lighten-2 center-align">
26 <span class="card-title big">{{ $gril.Birthday.Value}}</span>
27 <p>geburtstag</p>
28 </div>
29 </div>
30 </div>
31 {{ else if $gril.Age.Valid }}
32 <div class="col s6 m2 l2">
33 <div class="card">
34 <div class="card-content purple-text text-lighten-2 center-align">
35 <span class="card-title big">{{ $gril.Age.Value }}</span>
36 <p>jahre alt</p>
37 </div>
38 </div>
39 </div>
40 {{ end }}
41 {{ if $gril.Lists }}
42 <div class="col s6 m2 l2">
43 <div class="card">
44 <div class="card-content center-big purple-text text-lighten-2 center-align">
45 <p>in</p>
46 <span class="card-title big">{{ len $gril.Lists}}</span>
47 <p>liste{{ if ne (len $gril.Lists) 1 }}n{{ end }}</p>
48 </div>
49 </div>
50 </div>
51 {{ end }}
52 <div class="col s12 m4 l4">
53 <div class="card">
54 <div class="card-content purple-text text-lighten-2 center-align">
55 <span class="card-title big">{{ $gril.UpdatedAt.Format "Jan 02, 2006" }}</span>
56 <p>aktualisiert</p>
57 </div>
58 </div>
59 </div>
60 </div>
19 </div> 61 </div>
20 </body> 62 </body>
21</html> 63</html>
diff --git a/views/navbar.html b/views/navbar.html
index c4bbace..70911e4 100644
--- a/views/navbar.html
+++ b/views/navbar.html
@@ -6,6 +6,9 @@
6 {{ if .user }} 6 {{ if .user }}
7 <li><a href="/">{{ .user.Name }}</a></li> 7 <li><a href="/">{{ .user.Name }}</a></li>
8 <li><a href="/logout">Ausloggen</a></li> 8 <li><a href="/logout">Ausloggen</a></li>
9 {{ else }}
10 <li><a href="/login">Einloggen</a></li>
11 <li><a href="/register">Registrieren</a></li>
9 {{ end }} 12 {{ end }}
10 </ul> 13 </ul>
11 </div> 14 </div>