]> source.dussan.org Git - gitea.git/commit
Show zero lines on the line counter if the file empty (#8700)
authorLukas <LukBukkit@users.noreply.github.com>
Tue, 29 Oct 2019 16:05:26 +0000 (17:05 +0100)
committerzeripath <art27@cantab.net>
Tue, 29 Oct 2019 16:05:26 +0000 (16:05 +0000)
commit559803025df56b540137e3e3fff262433bee57af
treee822f69c8cfdbd8f48c71d6c19c12bd6ccf0704b
parent9513a6983a9b0a025dc77ffdbc559f1550e3f7dd
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>
routers/repo/view.go
templates/repo/view_file.tmpl