From 559803025df56b540137e3e3fff262433bee57af Mon Sep 17 00:00:00 2001 From: Lukas Date: Tue, 29 Oct 2019 17:05:26 +0100 Subject: Show zero lines on the line counter if the file empty (#8700) * Show zero lines on the line counter if the file empty Signed-off-by: LukBukkit * A single variable to check whether NumLines is set Signed-off-by: LukBukkit --- templates/repo/view_file.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index e490fc123b..616ca25650 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -6,7 +6,7 @@ {{.FileName}} {{else}}
- {{if .NumLines}} + {{if .NumLinesSet}}
{{.NumLines}} {{.i18n.Tr (TrN .i18n.Lang .NumLines "repo.line" "repo.lines") }}
-- cgit v1.2.3