forgejo/templates/admin
avery 67d62ee456
Some checks are pending
/ release (push) Waiting to run
testing-integration / test-unit (push) Waiting to run
testing-integration / test-sqlite (push) Waiting to run
testing-integration / test-mariadb (v10.6) (push) Waiting to run
testing-integration / test-mariadb (v11.8) (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
fix: "disable router log" indicator on configuration summary page (#10356)
## Summary
Currently, on `{INSTANCE_URL}/admin/config`, the "Disable router log" indicator is completely meaningless, as nothing is assigned to `ctx.Data["DisableRouterLog"]` in [`routers/web/admin/config.go`](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/routers/web/admin/config.go#L121).
This makes the indicator useful without changing any Go code by querying the `Loggers` item that has already been dumped to the context.

Some pictures :)
---

### Before (always)
![image0](/attachments/451c9742-df4b-451a-8144-9d852dcd139f)

### After (with default log config)
![image0](/attachments/451c9742-df4b-451a-8144-9d852dcd139f)

### After (with `LOGGER_ROUTER_MODE` set to empty)
![image](/attachments/df04e085-9a32-402c-8e56-51a311a2a470)

---
## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests
As far as I can tell, there aren't tests for TMPL template rendering, if I have overlooked them I'll be happy to add.

- I added test coverage for Go changes...
  - [ ] in their respective `*_test.go` for unit tests.
  - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes
(I don't really mind)

- [x] I do not want this change to show in the release notes.
- [x] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10356
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: avery <avery@catpowered.net>
Co-committed-by: avery <avery@catpowered.net>
2026-01-20 22:09:11 +01:00
..
applications Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
auth feat: allow sync quota groups with oauth2 auth source (#8554) 2025-12-01 14:12:00 +01:00
emails feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
moderation fix: 'More actions' (⋯) dropdown from moderation reports overview page (#10339) 2025-12-10 17:09:59 +01:00
org fix(i18n): fix several usages of i18n (#7422) 2025-04-02 14:50:02 +00:00
packages feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
repo fix: admin repo page error on NumIssues (#9983) 2025-11-05 18:16:35 +01:00
runners Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
user feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
actions.tmpl Added instance-level variables (#28115) 2023-12-25 07:28:59 +00:00
config.tmpl fix: "disable router log" indicator on configuration summary page (#10356) 2026-01-20 22:09:11 +01:00
config_settings.tmpl Remove fomantic checkbox module (#30162) 2024-04-07 11:05:37 +02:00
cron.tmpl feat(ui): improve admin dashboard cron list (#10270) 2025-12-01 15:19:36 +01:00
dashboard.tmpl feat(ui): improve admin dashboard cron list (#10270) 2025-12-01 15:19:36 +01:00
hook_new.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
hooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl [UI] Fix admin layout 2024-07-30 23:35:22 +02:00
navbar.tmpl feat: Admin interface for abuse reports (#7905) 2025-07-23 00:20:15 +02:00
notice.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
queue.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
queue_manage.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
self_check.tmpl Add cache test for admins (#31265) 2024-06-23 11:27:03 +02:00
stacktrace-row.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
stacktrace.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
stats.tmpl [REFACTOR] Simplify converting struct to map in admin stats 2024-02-22 22:25:19 +01:00
system_status.tmpl feat(i18n): translate system status data units in runtime (#10358) 2025-12-09 14:38:40 +01:00