mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 07:04:25 +00:00
c9d0e63c20
Follow #29165
6 lines
476 B
Handlebars
6 lines
476 B
Handlebars
{{Eval .file.Addition "+" .file.Deletion}}
|
|
<span class="diff-stats-bar gt-mx-3" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.stats_desc_file" (Eval .file.Addition "+" .file.Deletion) .file.Addition .file.Deletion}}">
|
|
{{/* if the denominator is zero, then the float result is "width: NaNpx", as before, it just works */}}
|
|
<div class="diff-stats-add-bar" style="width: {{Eval 100 "*" .file.Addition "/" "(" .file.Addition "+" .file.Deletion "+" 0.0 ")"}}%"></div>
|
|
</span>
|