diff options
author | Benno <blueworrybear@gmail.com> | 2019-10-30 05:32:21 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-10-29 23:32:21 +0200 |
commit | 7bb817e6d19f21ccb16c6ba1eecd0e89fd052322 (patch) | |
tree | e31718968ed52f5f481fa11ccf9859215a37e261 /templates | |
parent | e7fbc551ab7b743761f90997864ed8c11e4f9c39 (diff) | |
download | gitea-7bb817e6d19f21ccb16c6ba1eecd0e89fd052322.tar.gz gitea-7bb817e6d19f21ccb16c6ba1eecd0e89fd052322.zip |
Respect LFS File Lock on UI (#8719)
* update #8687 respect file locking
* upate #8687 Add LFS locker information
* update #8719 enhance coding style and return error
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/view_file.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 616ca25650..f95076272e 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -16,6 +16,12 @@ {{FileSize .FileSize}}{{if .IsLFSFile}} ({{.i18n.Tr "repo.stored_lfs"}}){{end}} </div> {{end}} + {{if .LFSLock}} + <div class="file-info-entry"> + <i class="fa fa-lock poping up disabled" data-content="{{.LFSLockHint}}" data-position="bottom center" data-variation="tiny inverted"></i> + <a href="{{AppSubUrl}}/{{.LFSLock.Owner.Name}}">{{.LFSLockOwner}}</a> + </div> + {{end}} </div> {{end}} </div> |