Skip to content

Commit

Permalink
Minor templates improvements (yandex#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
buglloc authored May 19, 2017
1 parent 183aae6 commit 6f360bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions gixy/formatters/templates/console.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ No issues found.
{% else %}

{% for issue in issues|sort(attribute='severity') %}
{{ colors[issue.severity] }}>> Problem: [{{ issue.plugin }}] {{ issue.summary }}
{{ colors[issue.severity] }}>> Problem: [{{ issue.plugin }}] {{ issue.summary }}{{ colors.DEF }}
{% if issue.description %}
Description: {{ issue.description }}
Description: {{ issue.description }}
{% endif %}
{% if issue.help_url %}
Additional info: {{ issue.help_url }}
Additional info: {{ issue.help_url }}
{% endif %}
{% if issue.reason %}
Reason: {{ issue.reason }}
Reason: {{ issue.reason }}
{% endif %}
Pseudo config:{{ colors.DEF }}
Pseudo config:
{{ issue.config }}

{% if not loop.last %}
Expand All @@ -30,7 +30,6 @@ No issues found.
{% endif %}
{% if not loop.last %}
--------8<--------8<--------8<--------8<--------

{% endif %}
{% endfor %}
{% if stats %}
Expand Down
11 changes: 5 additions & 6 deletions gixy/formatters/templates/text.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ No issues found.

{% for issue in issues|sort(attribute='severity') %}
>> Problem: [{{ issue.plugin }}] {{ issue.summary }}
Severity: {{ issue.severity }}
Severity: {{ issue.severity }}
{% if issue.description %}
Description: {{ issue.description }}
Description: {{ issue.description }}
{% endif %}
{% if issue.help_url %}
Additional info: {{ issue.help_url }}
Additional info: {{ issue.help_url }}
{% endif %}
{% if issue.reason %}
Reason: {{ issue.reason }}
Reason: {{ issue.reason }}
{% endif %}
Pseudo config:
Pseudo config:
{{ issue.config }}

{% if not loop.last %}
Expand All @@ -30,7 +30,6 @@ No issues found.
{% endif %}
{% if not loop.last %}
--------8<--------8<--------8<--------8<--------

{% endif %}
{% endfor %}
{% if stats %}
Expand Down

0 comments on commit 6f360bc

Please sign in to comment.