You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haproxy-wi/app/templates/ajax/compare.html

30 lines
882 B

</center>
<div class="out">
<div class="diff">
6 years ago
{% set plus = [] %}
{% set minus = [] %}
{% set total_change = 0 %}
{% for line in stdout %}
{% if loop.index0 == 0 %}
<div class="diffHead">{{ line }}<br />
{% elif loop.index0 == 1 %}
{{ line }}</div>
{% elif line.startswith('-') and loop.index0 > 1 %}
<div class="lineDiffMinus">{{ line }}</div>
6 years ago
{% do minus.append(1) %}
{% elif line.startswith('+') and loop.index0 > 2 %}
<div class="lineDiffPlus">{{ line }}</div>
6 years ago
{% do plus.append(1) %}
{% elif line.startswith('@') %}
<div class="lineDog">{{ line }}</div>
{% else %}
<div class="lineDiff">{{ line }}</div>
{% endif %}
{% endfor %}
6 years ago
{% set total_change = minus + plus %}
6 years ago
<div class="diffHead">Total change: {{ total_change|length }}, additions: {{ plus|length }} & deletions: {{ minus|length }} </div>
</div>
</div>