From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/repo/file_info.tmpl | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 templates/repo/file_info.tmpl (limited to 'templates/repo/file_info.tmpl') diff --git a/templates/repo/file_info.tmpl b/templates/repo/file_info.tmpl new file mode 100644 index 0000000..6ae7c15 --- /dev/null +++ b/templates/repo/file_info.tmpl @@ -0,0 +1,53 @@ +
+ {{if .FileIsSymlink}} +
+ {{ctx.Locale.Tr "repo.symbolic_link"}} +
+ {{end}} + {{if .NumLinesSet}}{{/* Explicit attribute needed to show 0 line changes */}} +
+ {{.NumLines}} {{ctx.Locale.TrN .NumLines "repo.line" "repo.lines"}} +
+ {{end}} + {{if .HasNoTrailingEOL}} +
+ {{ctx.Locale.Tr "repo.no_eol.text"}} +
+ {{end}} + {{if .FileSize}} +
+ {{ctx.Locale.TrSize .FileSize}}{{if .IsLFSFile}} ({{ctx.Locale.Tr "repo.stored_lfs"}}){{end}} +
+ {{end}} + {{if .LFSLock}} +
+ {{svg "octicon-lock" 16 "tw-mr-1"}} + {{.LFSLockOwner}} +
+ {{end}} + {{if .LexerName}} +
+ {{.LexerName}} +
+ {{end}} + {{if .IsExecutable}} +
+ {{ctx.Locale.Tr "repo.executable_file"}} +
+ {{end}} + {{if .IsVendored}} +
+ {{ctx.Locale.Tr "repo.vendored"}} +
+ {{end}} + {{if .IsGenerated}} +
+ {{ctx.Locale.Tr "repo.generated"}} +
+ {{end}} + {{if .ImageSize}} +
+ {{.ImageSize}} +
+ {{end}} +
-- cgit v1.2.3