]> source.dussan.org Git - gitea.git/commit
Show lock owner instead of repo owner on LFS setting page (#31788) (#31817)
authorGiteabot <teabot@gitea.io>
Sun, 11 Aug 2024 15:17:34 +0000 (23:17 +0800)
committerGitHub <noreply@github.com>
Sun, 11 Aug 2024 15:17:34 +0000 (15:17 +0000)
commita39fe5325266f1c079e0e54abc68e6470764eb44
treeb3c601a256c701c4632935b58bbc335d5d918b24
parente563297c347eda301ffef3d4ddca6bf4752f5afd
Show lock owner instead of repo owner on LFS setting page (#31788) (#31817)

Backport #31788 by @wolfogre

Fix #31784.

Before:

<img width="1648" alt="image"
src="https://github.com/user-attachments/assets/03f32545-4a85-42ed-bafc-2b193a5d8023">

After:

<img width="1653" alt="image"
src="https://github.com/user-attachments/assets/e5bcaf93-49cb-421f-aac1-5122bc488b02">

Co-authored-by: Jason Song <i@wolfogre.com>
models/git/lfs_lock.go
models/git/lfs_lock_list.go [new file with mode: 0644]
routers/web/repo/setting/lfs.go
templates/repo/settings/lfs_locks.tmpl
tests/integration/lfs_view_test.go