-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
additional_checks: Link to schema docs, count in header
#13 Also fix broken if clause - some errors would not have been shown Not sure how to do trans blocks correctly but it's not important for now so leaving for later
- Loading branch information
1 parent
9dd1c5f
commit b284839
Showing
2 changed files
with
95 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
cove_ofds/templates/cove_ofds/additional_checks_table_failure_counter.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% load i18n %} | ||
|
||
{% with l1l=list1|length l2l=list2|length l3l=list3|length%} | ||
{% with count=l1l|add:l2l|add:l3l %} | ||
({% if count == 1 %}1 failure{% else %}{{ count }} {% trans 'failures' %}{% endif %}) | ||
{% endwith %} | ||
{% endwith %} |