{{ define "base" }} {{ $cf := .ClientFlags }} {{ $ds := band $cf 1 }} {{ $ := . }} {{ if .TitleBar }}{{ .T .TitleBar }} - {{ end }}Yozora {{/* If we're asked to disable the hugeheading, but a KyutGrill is set, it will become the background of the page. This is mainly used in user profiles, allowing users to set their profile background. If we're asked to disable the hugeheading, and a KyutGrill is not set, navbar has the `dropped` class. */}}
{{ template "navbar" . }} {{ if not .DisableHH }}

{{ if .HeadingTitle }}{{ .T .HeadingTitle | html }}{{ else }}{{ .T .TitleBar }}{{ end }}

{{ end }}
{{ if and .Context.User.Username (not (has .Context.User.Privileges 1)) }}
{{ $.T "Your account is currently in restricted mode. You will not be able to do certain actions, and your profile can only be seen by you and by Yozora's staff. If you believe we have mistaken putting you in restricted mode, or a month has passed since you first saw this, then you can send an appeal to support@yozora.pw." | html }}
{{ end }} {{ if .Messages }} {{ range $i, $v := .Messages }}
{{ html $v.Content }}
{{ end }} {{ end }} {{ $settings := systemSettings "website_maintenance" "game_maintenance" "website_global_alert" }} {{ with $settings.website_global_alert.String }}
{{ . | html }}
{{ end }} {{ with $settings.game_maintenance.Int }}
{{ $.T "Yozora's score submission is currently in maintenance mode. You will not be allowed to submit scores for the time being." }}
{{ end }} {{ with $settings.website_maintenance.Int }}
{{ $.T "The Yozora website is currently in maintenance mode. Only certain users are allowed to access the full website." }}
{{ end }}
{{ template "tpl" . }}
{{/* If we got some more scripts to print, print'em */}} {{ with $lang }} {{ end }} {{ if .Scripts }} {{ range .Scripts }} {{ end }} {{ end }} {{ end }}