/
errors.html
26 lines (26 loc) · 1021 Bytes
/
errors.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% if ledger.errors %}
<table is="sortable-table" class="errors">
<thead>
<tr>
<th data-sort="string" data-order="asc">{{ _('File') }}</th>
<th data-sort="num">{{ _('Line') }}</th>
<th data-sort="string">{{ _('Error') }}</th>
</tr>
</thead>
<tbody>
{% for error in ledger.errors %}
<tr>
{% with link=url_for_source(file_path=error.source['filename'], line=error.source['lineno']) %}
<td><a class="source" href="{{ link }}" title="{{ _('Show source %(file)s:%(lineno)s', file=error.source['filename'], lineno=error.source['lineno']) }}">{{ error.source['filename'] }}</a></td>
<td class="num"><a class="source" href="{{ link }}" title="{{ _('Show source %(file)s:%(lineno)s', file=error.source['filename'], lineno=error.source['lineno']) }}">{{ error.source['lineno'] }}</a></td>
<td class="pre">{{ error.message|format_errormsg }}</td>
{% endwith %}
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>
{{ _('No errors.') }}
</p>
{% endif %}