1968d2ae54
* Add T field to template variables * Remove languages.SetTranslationFromRequest * Add Tfunc on handlers * Remove T and Ts from template_functions * Update templates Change the templates to use the local Tfunc, instead of the global one. Also changed the signature of the fields on template_variables.go, so that they return a template.HTML to avoid escaping problems. * Remove unnecessary variable
8 lignes
238 o
HTML
8 lignes
238 o
HTML
{{define "title"}}{{call $.T "404_not_found"}}{{end}}
|
|
{{define "content"}}
|
|
<div>
|
|
<h1>{{call $.T "404_not_found"}}</h1>
|
|
<br />
|
|
<img class="center-block center-image" src="/img/404.svg"></img>
|
|
</div>
|
|
{{end}}
|