You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/base
wxiaoguang 6913053223
Start using template context function (#26254)
Before:

* `{{.locale.Tr ...}}`
* `{{$.locale.Tr ...}}`
* `{{$.root.locale.Tr ...}}`
* `{{template "sub" .}}`
* `{{template "sub" (dict "locale" $.locale)}}`
* `{{template "sub" (dict "root" $)}}`
* .....

With context function: only need to `{{ctx.Locale.Tr ...}}`

The "ctx" could be considered as a super-global variable for all
templates including sub-templates.


To avoid potential risks (any bug in the template context function
package), this PR only starts using "ctx" in "head.tmpl" and
"footer.tmpl" and it has a "DataRaceCheck". If there is anything wrong,
the code can be fixed or reverted easily.
2 years ago
..
alert.tmpl Clean up polluted styles and remove dead CSS code (#24497) 2 years ago
alert_details.tmpl Enforce tab indentation in templates (#15289) 4 years ago
disable_form_autofill.tmpl Disable form autofill (#17291) 3 years ago
footer.tmpl Start using template context function (#26254) 2 years ago
footer_content.tmpl Align language menu icon and fit the footer area (#25556) 2 years ago
head.tmpl Start using template context function (#26254) 2 years ago
head_navbar.tmpl Enable H014 and H023 djlint rules (#25786) 2 years ago
head_script.tmpl rename tributeValues to mentionValues (#25375) 2 years ago
head_style.tmpl Remove meta tags `theme-color` and `default-theme` (#24960) 2 years ago
modal_actions_confirm.tmpl Button and color enhancements (#24989) 2 years ago
paginate.tmpl Move helpers to be prefixed with `gt-` (#22879) 2 years ago