Render diff stats server-side (#13579)
Eliminates a flash on page load on the diff stat bars.tokarchuk/v1.17
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