forgejo/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>
2022-12-11 12:06:12 +08:00
..
admin fix(config): remove context on config template (#22096) 2022-12-11 12:06:12 +08:00
api/packages/pypi Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
base Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
code Run make fmt (#21437) 2022-10-13 21:33:54 -04:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
mail Add team member invite by email (#20307) 2022-10-19 14:40:28 +02:00
org Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
package Add package registry cleanup rules (#21658) 2022-11-20 16:08:38 +02:00
repo Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
shared Timeline and color tweaks (#21799) 2022-11-19 12:02:30 +08:00
status Remove fomantic image module (#21145) 2022-09-12 17:08:46 +08:00
swagger Add API management for issue/pull and comment attachments (#21783) 2022-12-09 14:35:56 +08:00
user Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
home.tmpl fix(web): add alt for logo in home page (#21887) 2022-11-21 15:09:55 -05:00
install.tmpl Clean up formatting on install page (#21668) 2022-11-03 20:41:01 +00:00
post-install.tmpl Rename StaticUrlPrefix to AssetUrlPrefix (#15779) 2021-05-08 16:27:25 +02:00