Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

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
Cette révision appartient à :
kilo 2017-08-04 02:10:46 +02:00 révisé par ewhal
Parent 6ce056adf0
révision 2cca143121
3 fichiers modifiés avec 4 ajouts et 3 suppressions

Voir le fichier

@ -71,6 +71,7 @@ body {
position: relative;
z-index: 2;
}
.no-center > center { display: none; }
.header .container {
position: relative;

Voir le fichier

@ -12,9 +12,9 @@
{{ block content_body_base()}}
{{ if isset(Infos["system"])}}
{{ range Infos["system"]}}
<div id="announce"><span style="font-weight:bold;">{{T("announcement")}}</span><br>{{ . }}</div>
<div id="announce"><span style="font-weight:bold;">{{T("announcement")}}</span><br>{{ .|raw }}</div>
{{ end }}
{{ end }}
{{ yield search_refine(url=URL.Parse("/search")) }}
{{ block content_body()}}{{end}}
{{end}}
{{end}}

Voir le fichier

@ -47,7 +47,7 @@
<nav id="header" class="header">
{{block menu()}}{{end}}
</nav>
<div id="content" class="{{ block contclass() }}{{end}}">
<div id="content" class="{{ block contclass() }}{{end}}{{if isset(Infos["system"])}} no-center{{end}}">
<div class="content container center">
{{ yield infos()}}
{{ yield errors()}}