forgejo-federation/templates/admin
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
..
applications Support instance-wide OAuth2 applications (#21335) 2022-10-12 22:08:29 +08:00
auth Localize all timestamps (#21440) 2022-10-17 12:08:21 +08:00
base Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
emails Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
org Localize all timestamps (#21440) 2022-10-17 12:08:21 +08:00
packages Allow package version sorting (#21453) 2022-10-23 09:18:15 +08:00
repo Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
user Localize all timestamps (#21440) 2022-10-17 12:08:21 +08:00
config.tmpl fix(config): remove context on config template (#22096) 2022-12-11 12:06:12 +08:00
cron.tmpl Add whitespace removal inside template curly brackes (#20853) 2022-08-25 17:55:52 -04:00
dashboard.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
hook_new.tmpl Embed Matrix icon as SVG (#21890) 2022-11-21 20:25:26 +00:00
hooks.tmpl Merge default and system webhooks under one menu (#14244) 2021-01-15 01:24:03 +02:00
monitor.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
navbar.tmpl Optimize html templates (#22080) 2022-12-09 21:34:51 +08:00
notice.tmpl Rename actions to operations on UI (#22067) 2022-12-08 21:14:09 +08:00
process-row.tmpl Add whitespace removal inside template curly brackes (#20853) 2022-08-25 17:55:52 -04:00
process.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
queue.tmpl Webhook list enhancements (#21893) 2022-11-22 07:10:42 +08:00
stacktrace-row.tmpl Add whitespace removal inside template curly brackes (#20853) 2022-08-25 17:55:52 -04:00
stacktrace.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00