diff options
author | jan <jan@ruken.pw> | 2016-01-17 12:58:00 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-01-17 12:58:00 (UTC) |
commit | 93106509af23d63cd25df041777db11945c3ce91 (patch) | |
tree | 934aaa787f92d46f4a5b5028fee9599d4b59de34 | |
parent | b9744cdae8a3a1d536835891e34846e33fb11b50 (diff) |
in listen kann man jetzt auf den ersteller drücken. das user view zeigt jetzt den display namen an, wenn einer gesetzt wird
-rw-r--r-- | views/list.html | 2 | ||||
-rw-r--r-- | views/user.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/views/list.html b/views/list.html index 81e8825..45730b8 100644 --- a/views/list.html +++ b/views/list.html | |||
@@ -14,7 +14,7 @@ | |||
14 | <body> | 14 | <body> |
15 | {{ template "navbar" . }} | 15 | {{ template "navbar" . }} |
16 | <div class="container"> | 16 | <div class="container"> |
17 | <h1>{{ $list.Name }}<small>von {{ $list.Owner.GetName }}</small></h1> | 17 | <h1>{{ $list.Name }}<small>von <a href="/user/{{ $list.Owner.ID }}/{{ $list.Owner.GetName}}">{{ $list.Owner.GetName }}</a></small></h1> |
18 | <blockquote>{{ $list.Description }}</blockquote><br /> | 18 | <blockquote>{{ $list.Description }}</blockquote><br /> |
19 | <div class="row"> | 19 | <div class="row"> |
20 | <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}"> | 20 | <div class="col s12 {{ if ($user) and eq $user.ID $list.Owner.ID }}l8{{ end }}"> |
diff --git a/views/user.html b/views/user.html index 90d6db2..2cf9c54 100644 --- a/views/user.html +++ b/views/user.html | |||
@@ -9,7 +9,7 @@ | |||
9 | {{ template "navbar" . }} | 9 | {{ template "navbar" . }} |
10 | <div class="container"> | 10 | <div class="container"> |
11 | <div class="row" style="margin-top: 50px; line-height: 500%; "> | 11 | <div class="row" style="margin-top: 50px; line-height: 500%; "> |
12 | <span style="font-size: 4.2rem; margin: 2.1rem 1rem 1.68rem 0;">{{ .DisplayUser.Name }}</span> | 12 | <span style="font-size: 4.2rem; margin: 2.1rem 1rem 1.68rem 0;">{{ .DisplayUser.GetName }}</span> |
13 | {{ if .user }} | 13 | {{ if .user }} |
14 | {{ if eq .DisplayUser.ID .user.ID }} | 14 | {{ if eq .DisplayUser.ID .user.ID }} |
15 | <a class="btn waves-effect waves-light indigo lighten-5 black-text" style="margin-top: -1.68rem" href="/settings">Einstellungen</a> | 15 | <a class="btn waves-effect waves-light indigo lighten-5 black-text" style="margin-top: -1.68rem" href="/settings">Einstellungen</a> |
@@ -18,7 +18,7 @@ | |||
18 | </div> | 18 | </div> |
19 | <blockquote>zuletzt gesehen: {{ .DisplayUser.LastActivity.Format "Mon Jan _2 15:04:05 2006" }}</blockquote><br /> | 19 | <blockquote>zuletzt gesehen: {{ .DisplayUser.LastActivity.Format "Mon Jan _2 15:04:05 2006" }}</blockquote><br /> |
20 | <div class="row"> | 20 | <div class="row"> |
21 | <h3>Listen von {{ .DisplayUser.Name }}</h3> | 21 | <h3>Listen von {{ .DisplayUser.GetName }}</h3> |
22 | {{ range .Lists }} | 22 | {{ range .Lists }} |
23 | {{ template "card" . }} | 23 | {{ template "card" . }} |
24 | {{ end }} | 24 | {{ end }} |