forgejo/options
Antonin Delpeuch f5cbb9604d
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 / 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(ui): visually distinguish the branch name in action description (#8418)
## Checklist

### Tests

I don't think this deserves a test.

### 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

- [x] I do not want this change to show in the release notes.
- [ ] 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.

### What does it fix

In the dashboard, when someone deletes a branch, the message
that is displayed doesn't distinguish the branch name from the rest
of the message visually. Because that's user-provided content, I find
it odd, as it blends in with the system-generated message.

For consistency with other messages (such as the one obtained when
renaming a repository), I propose to show the branch name in monospaced
font via the `<code></code>` markup.

I didn't update the other languages by fear of interfering with Weblate but
I would be happy to update the other languages accordingly if you wish so.

I didn't add any tests because I don't think it's necessary for such a small change.

#### Before
![image](/attachments/f158626e-fa58-4559-81b7-dd99045e1a33)
#### After
![image](/attachments/f12fe539-5c9a-4d13-a912-414591b8726d)
#### Renaming a repository (unchanged, just for reference)
![image](/attachments/a2366afb-6e24-4ad7-a41d-1c0ac6f04725)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8418
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
Co-committed-by: Antonin Delpeuch <antonin@delpeuch.eu>
2025-07-06 14:26:20 +02:00
..
gitignore Update Zig gitignore (#7005) 2025-02-21 08:25:08 +00:00
label Add missing exclusive in advanced label options (#28322) 2024-01-22 07:56:17 +00:00
license [skip ci] Updated licenses and gitignores 2024-09-14 17:05:52 +02:00
locale fix(ui): visually distinguish the branch name in action description (#8418) 2025-07-06 14:26:20 +02:00
locale_next i18n: update of translations from Codeberg Translate 2025-07-03 03:51:11 +00:00
readme Bindata is optional and over-writable on restart (#354) 2016-12-22 19:12:23 +01:00
locale_readme.md chore(i18n): update contributing documentation with JSON format (#7499) 2025-04-10 10:30:22 +00:00