From 8ed9967cce5990f55841d438b8da5de6ab097de0 Mon Sep 17 00:00:00 2001 From: rtz12 Date: Mon, 28 Dec 2015 23:46:37 +0100 Subject: "OtherNames" werden nun am Gril angezeigt 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 @@ +#gril-title { + margin-bottom: 0rem; +} + +#gril-alias { + margin-top: 0rem; + margin-bottom: 1rem; +} + h1 > small { padding-left: 8px; font-size: 50%; @@ -10,4 +19,4 @@ h1 > small { .card-content.center-big { padding-top: 9px; padding-bottom: 9px; -} \ No newline at end of file +} 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 @@ {{ template "navbar" . }}
-

{{ $gril.RomajiName }}{{ $gril.KanjiName }}

+

{{ $gril.RomajiName }}{{ $gril.KanjiName }}

+ {{ if $gril.OtherNames }} +

Auch bekannt als: + {{ range $i, $alias := $gril.OtherNames }}{{ if $i }},{{ end }} + {{ $alias }}{{ end }} +

+ {{ end }} {{ range $tag := $gril.Tags }}
{{ $tag }} @@ -61,4 +67,4 @@
-{{ end }} \ No newline at end of file +{{ end }} -- cgit v0.10.1