mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 04:12:10 +00:00
Merge pull request '[UI] Adjust trailing EOL behavior for empty file' (#5013) from gusted/forgejo-adjust-eol into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5013 Reviewed-by: Otto <otto@codeberg.org>
This commit is contained in:
commit
f28cde134e
3 changed files with 33 additions and 28 deletions
|
@ -9,7 +9,7 @@
|
|||
{{.NumLines}} {{ctx.Locale.TrN .NumLines "repo.line" "repo.lines"}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{if and .HasTrailingEOLSet (not .HasTrailingEOL)}}
|
||||
{{if .HasNoTrailingEOL}}
|
||||
<div class="file-info-entry" data-tooltip-content="{{ctx.Locale.Tr "repo.no_eol.tooltip"}}">
|
||||
{{ctx.Locale.Tr "repo.no_eol.text"}}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue