Commit Graph

6 Commits

Author SHA1 Message Date
837faafd6b feat: restrict repository file browsing and commit history to authenticated users via conditional template blocks 2024-12-23 01:10:53 +00:00
99e5421464 feat: hide raw file button for signed-in users when readme is not in list 2024-12-17 13:29:15 +00:00
f4a29ac507 chore: restructure repo homepage template to show readme only for signed users and fix view_file container class 2024-12-17 11:25:14 +00:00
5e6e4ffb32 feat: add signed-in conditional blocks and fix repo home template rendering logic
- Wrapped file view, blame, and directory listing sections inside `{{if .IsSigned}}` blocks to restrict content visibility to authenticated users.
- Moved `repo/sub_menu` template inclusion into the signed-in block for both home and directory views.
- Added duplicate `{{if .IsSigned}}` check and redundant template calls for view_file, blame, and view_list to correct nested conditional structure.
- Removed `{{if .IsSigned}}` guard from the original `repo/sub_menu` call to prevent double rendering and align with new layout.
2024-12-15 23:56:09 +00:00
root
4b8c7fc05b fix: correct typo 'buttom' to 'bottom' in repo home template description 2024-12-08 03:22:42 +00:00
5806c156e3 feat: add initial Gitea static assets including security.txt, CSS, and font files 2024-12-06 18:18:45 +00:00