{% macro tabs(repo, tab) %} {% endmacro %} {% macro sig(s) %}{{ s.glyph() }}{% endmacro %} {% macro labels(c) %}{% for l in c.labels %}{{ l.name }}{% endfor %}{% endmacro %} {% macro change_row(repo, c) %}
{{ c.title }} {% call labels(c) %} {% if c.resolution %}resolution{% endif %} {% if c.head %}head{% endif %}
{% if let Some(a) = c.author.account %}{{ c.author.name }}{% else %}{{ c.author.name }}{% endif %} ·
{% call sig(c.signature) %} {{ c.short }}
{% endmacro %} {% macro line_text(l) %}
{% if l.segments.is_empty() %}{{ l.text }}{% else %}{% for g in l.segments %}{% if g.changed %}{{ g.text }}{% else %}{{ g.text }}{% endif %}{% endfor %}{% endif %}
{% endmacro %} {% macro diff_bar(ignore_ws, keep) %}
{% if ignore_ws %}show whitespace changes{% else %}hide whitespace changes{% endif %}
{% endmacro %} {% macro diff(files, ignore_ws, keep) %} {% if !files.is_empty() %}{% call diff_bar(ignore_ws, keep) %}{% endif %} {% for f in files %}
{{ f.kind }} {% if let Some(from) = f.from %}{{ from }} → {% endif %}{{ f.path }} +{{ f.added }} −{{ f.removed }} {% if f.lines.is_empty() %}

No line changes.

{% else %} {% for l in f.lines %} {% endfor %}
{% if let Some(n) = l.old_no %}{{ n }}{% endif %} {% if let Some(n) = l.new_no %}{{ n }}{% endif %} {{ l.kind.sign() }} {% call line_text(l) %}
{% endif %}
{% endfor %} {% endmacro %}