mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-28 06:17:15 +08:00
The blame page and the diff file menu always offered "Unescape", even for files without escaped characters. Blame now renders the buttons only when `EscapeStatus.Escaped` is true, like the file view. The diff menu decides when it opens, because escape status is only known once its lines are rendered, which also covers expanded and later loaded lines. | Before | After | | --- | --- | | <img width="441" height="48" alt="Blame before" src="https://github.com/user-attachments/assets/f36af26d-020d-4403-ad85-da7ff9125015"> | <img width="349" height="48" alt="Blame after" src="https://github.com/user-attachments/assets/c5ee4693-e947-421c-93f1-fd9a74440dc0"> | | <img width="146" height="175" alt="Diff menu before" src="https://github.com/user-attachments/assets/126d507c-5d17-45b8-bb3a-81c2256a27ed"> | <img width="146" height="137" alt="Diff menu after" src="https://github.com/user-attachments/assets/4a6b56b8-6bec-4b9d-8c3a-dc8092c3639d"> | Fixes: https://github.com/go-gitea/gitea/issues/22613 Assisted-by: OpenCode:hy4-flash-free Assisted-by: Claude Code:claude-opus-5-5 --------- Co-authored-by: silverwind <me@silverwind.io>