mirror of https://github.com/go-gitea/gitea
Render diff stats server-side (#13579)
Eliminates a flash on page load on the diff stat bars.pull/13576/head^2
parent
0de546009e
commit
efcba9b011
@ -0,0 +1,6 @@ |
||||
<span class="add" data-line="{{.Addition}}">+ {{.Addition}}</span> |
||||
<span class="bar"> |
||||
<div class="pull-left add" style="width: {{DiffStatsWidth .Addition .Deletion}}%"></div> |
||||
<div class="pull-left del"></div> |
||||
</span> |
||||
<span class="del" data-line="{{.Deletion}}">- {{.Deletion}}</span> |
Loading…
Reference in new issue