Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

2 commits

Auteur SHA1 Message Date
Ramon Dantas 1968d2ae54 Move translation func to template variables (#652)
* 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
2017-05-21 08:38:28 +10:00
ElegantMonkey 7808615c6a Add route and template files 2017-05-12 19:28:56 -03:00