diff options
author | rtz12 <koenig@fagott.pw> | 2015-12-28 22:46:37 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2015-12-28 22:46:37 (UTC) |
commit | 8ed9967cce5990f55841d438b8da5de6ab097de0 (patch) | |
tree | 4cd18e0064fb2b99e4209843c747d3f424076ccd | |
parent | b4c2a5c6d571a44621db07b9930e812868604c6b (diff) |
"OtherNames" werden nun am Gril angezeigt
-rw-r--r-- | assets/css/gril.css | 11 | ||||
-rw-r--r-- | views/gril.html | 10 |
2 files changed, 18 insertions, 3 deletions
diff --git a/assets/css/gril.css b/assets/css/gril.css index 5b5bd84..63c45ed 100644 --- a/assets/css/gril.css +++ b/assets/css/gril.css | |||
@@ -1,3 +1,12 @@ | |||
1 | #gril-title { | ||
2 | margin-bottom: 0rem; | ||
3 | } | ||
4 | |||
5 | #gril-alias { | ||
6 | margin-top: 0rem; | ||
7 | margin-bottom: 1rem; | ||
8 | } | ||
9 | |||
1 | h1 > small { | 10 | h1 > small { |
2 | padding-left: 8px; | 11 | padding-left: 8px; |
3 | font-size: 50%; | 12 | font-size: 50%; |
@@ -10,4 +19,4 @@ h1 > small { | |||
10 | .card-content.center-big { | 19 | .card-content.center-big { |
11 | padding-top: 9px; | 20 | padding-top: 9px; |
12 | padding-bottom: 9px; | 21 | padding-bottom: 9px; |
13 | } \ No newline at end of file | 22 | } |
diff --git a/views/gril.html b/views/gril.html index c7ecbdc..458ccc1 100644 --- a/views/gril.html +++ b/views/gril.html | |||
@@ -10,7 +10,13 @@ | |||
10 | <body> | 10 | <body> |
11 | {{ template "navbar" . }} | 11 | {{ template "navbar" . }} |
12 | <div class="container"> | 12 | <div class="container"> |
13 | <h1>{{ $gril.RomajiName }}<small>{{ $gril.KanjiName }}</small></h1> | 13 | <h1 id="gril-title">{{ $gril.RomajiName }}<small>{{ $gril.KanjiName }}</small></h1> |
14 | {{ if $gril.OtherNames }} | ||
15 | <p id="gril-alias">Auch bekannt als: | ||
16 | {{ range $i, $alias := $gril.OtherNames }}{{ if $i }},{{ end }} | ||
17 | {{ $alias }}{{ end }} | ||
18 | </p> | ||
19 | {{ end }} | ||
14 | {{ range $tag := $gril.Tags }} | 20 | {{ range $tag := $gril.Tags }} |
15 | <div class="chip"> | 21 | <div class="chip"> |
16 | {{ $tag }} | 22 | {{ $tag }} |
@@ -61,4 +67,4 @@ | |||
61 | </div> | 67 | </div> |
62 | </body> | 68 | </body> |
63 | </html> | 69 | </html> |
64 | {{ end }} \ No newline at end of file | 70 | {{ end }} |