summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBenno <blueworrybear@gmail.com>2019-10-30 05:32:21 +0800
committerLauris BH <lauris@nix.lv>2019-10-29 23:32:21 +0200
commit7bb817e6d19f21ccb16c6ba1eecd0e89fd052322 (patch)
treee31718968ed52f5f481fa11ccf9859215a37e261 /templates
parente7fbc551ab7b743761f90997864ed8c11e4f9c39 (diff)
downloadgitea-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.tmpl6
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>