mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
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 <luk.bukkit@gmail.com> * A single variable to check whether NumLines is set Signed-off-by: LukBukkit <luk.bukkit@gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<strong>{{.FileName}}</strong>
|
||||
{{else}}
|
||||
<div class="file-info text grey normal mono">
|
||||
{{if .NumLines}}
|
||||
{{if .NumLinesSet}}
|
||||
<div class="file-info-entry">
|
||||
{{.NumLines}} {{.i18n.Tr (TrN .i18n.Lang .NumLines "repo.line" "repo.lines") }}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user