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 à :
Parent
6ce056adf0
révision
2cca143121
3 fichiers modifiés avec 4 ajouts et 3 suppressions
|
@ -71,6 +71,7 @@ body {
|
|||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
.no-center > center { display: none; }
|
||||
|
||||
.header .container {
|
||||
position: relative;
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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()}}
|
||||
|
|
Référencer dans un nouveau ticket