From 2cca143121c19d5b1fe45c690b973b7465ef7aa9 Mon Sep 17 00:00:00 2001 From: kilo Date: Fri, 4 Aug 2017 02:10:46 +0200 Subject: [PATCH] Hide "support pantsu"" if announcement is there (#1340) * add no-center class if announcement exist * add no-center class that hides .no-center > center * Update index_site.jet.html --- public/css/main.css | 1 + templates/layouts/index_site.jet.html | 4 ++-- templates/layouts/partials/base.jet.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index 0e9f943f..c8257c45 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -71,6 +71,7 @@ body { position: relative; z-index: 2; } +.no-center > center { display: none; } .header .container { position: relative; diff --git a/templates/layouts/index_site.jet.html b/templates/layouts/index_site.jet.html index 8f097153..2aebdad8 100644 --- a/templates/layouts/index_site.jet.html +++ b/templates/layouts/index_site.jet.html @@ -12,9 +12,9 @@ {{ block content_body_base()}} {{ if isset(Infos["system"])}} {{ range Infos["system"]}} -
{{T("announcement")}}
{{ . }}
+
{{T("announcement")}}
{{ .|raw }}
{{ end }} {{ end }} {{ yield search_refine(url=URL.Parse("/search")) }} {{ block content_body()}}{{end}} -{{end}} \ No newline at end of file +{{end}} diff --git a/templates/layouts/partials/base.jet.html b/templates/layouts/partials/base.jet.html index ae9ba235..f56255bd 100644 --- a/templates/layouts/partials/base.jet.html +++ b/templates/layouts/partials/base.jet.html @@ -47,7 +47,7 @@ -
+
{{ yield infos()}} {{ yield errors()}}