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.
forgejo/templates
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.
12 months ago
..
admin Allow package cleanup from admin page (#25307) 12 months ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 1 year ago
base Start using template context function (#26254) 12 months ago
code Fix inconsistent user profile layout across tabs (#25625) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 12 months ago
explore Fix incorrect sort link with `.profile` repository (#26374) 12 months ago
mail Add template linting via djlint (#25212) 1 year ago
org Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 12 months ago
package Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 12 months ago
projects Merge `templates/projects/list.tmpl` and `templates/repo/projects/list.tmpl` together (#26265) 12 months ago
repo Display human-readable text instead of cryptic filemodes (#26352) 12 months ago
shared Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 12 months ago
status Replace fomantic divider module with our own (#25539) 1 year ago
swagger Doc update swagger doc for POST /orgs/{org}/teams (#26155) 1 year ago
user Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 12 months ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 1 year ago
install.tmpl Show correct SSL Mode on "install page" (#25818) 1 year ago
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) 1 year ago