Skip to content

Commit

Permalink
Report proposal information on MD/HTML, fixes #4540
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Feb 29, 2024
1 parent 2bf3368 commit eb090ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Lib/fontbakery/reporters/templates/html/check.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ <h3>
{% if cluster[0].rationale and not succinct %}
{{ cluster[0].rationale | unwrap | markdown }}
{% endif %}

{% if cluster[0].proposal and not succinct %}
<ul>
{% for proposal in cluster[0].proposal %}
{% if loop.index == 1 %}
<li>Original proposal: <a href="{{proposal}}">{{proposal}}</a></li>
{% else %}
<li>See also: <a href="{{proposal}}">{{proposal}}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
<div style="background-color:#ee8">
{% for check in cluster %}
{% if check['result'] == "FATAL" %}
Expand Down
6 changes: 6 additions & 0 deletions Lib/fontbakery/reporters/templates/markdown/check.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
{% endfor %}
{% endif %}

{% if check.proposal and not succinct %}
{% for proposal in check.proposal %}{% if loop.index == 1 %}> Original proposal: {{proposal}}
{% else %}> See also: {{proposal}}
{%endif%}{% endfor %}
{% endif %}

{% for result in check.logs |sort(attribute="status") %}
{% if not result is omitted %}
* {{result.status | emoticon }} **{{result.status}}** {{result.message.message}} {%if result.message.code%}[code: {{result.message.code}}]{%endif%}
Expand Down

0 comments on commit eb090ec

Please sign in to comment.