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
Restray 112e425f90
fix(config): remove context on config template (#22096)
👋 Hey
I'm new around here, so I may have done some mistakes, sorry! 

---

## Context
On a fresh Gitea install, when I go to the [config admin
page](http://localhost:3000/admin/config) I had a 500 error page.
The logs:
```
2022/12/10 20:08:47 ...s/context/context.go:232:HTML() [E] [6394d93f] Render failed: template: admin/config:180:22: executing "admin/config" at <.Service.DefaultAllowOnlyContributorsToTrackTime>: DefaultAllowOnlyContributorsToTrackTime has arguments but cannot be invoked as function
2022/12/10 20:08:47 [6394d93f] router: completed GET /admin/config for [::1]:43800, 500 Internal Server Error in 5.1ms @ admin/config.go:99(admin.Config)
```

## The fix

I removed the `$.Context` on the
`.Service.DefaultAllowOnlyContributorsToTrackTime` to fix the 500 error
page happening. It could be a mistake, and I don't fully understand what
I've done!

Signed-off-by: Restray <contact@restray.org>
2 years ago
..
admin fix(config): remove context on config template (#22096) 2 years ago
api/packages/pypi Add Package Registry (#16510) 3 years ago
base Optimize html templates (#22080) 2 years ago
code Run `make fmt` (#21437) 2 years ago
custom Add footer extra links template (#9576) 5 years ago
explore Optimize html templates (#22080) 2 years ago
mail Add team member invite by email (#20307) 2 years ago
org Rename almost all Ctx functions (#22071) 2 years ago
package Add package registry cleanup rules (#21658) 2 years ago
repo Rename almost all Ctx functions (#22071) 2 years ago
shared Timeline and color tweaks (#21799) 2 years ago
status Remove fomantic image module (#21145) 2 years ago
swagger Add API management for issue/pull and comment attachments (#21783) 2 years ago
user Optimize html templates (#22080) 2 years ago
home.tmpl fix(web): add `alt` for logo in home page (#21887) 2 years ago
install.tmpl Clean up formatting on install page (#21668) 2 years ago
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 4 years ago