Add support for <br> and <ol> tags in progress update

This commit is contained in:
davegson 2020-07-31 14:46:44 +02:00
parent 640a6ff600
commit 76bbe24cb3
2 changed files with 9 additions and 0 deletions

View file

@ -94,6 +94,14 @@
{% for tag in card.progress %} {% for tag in card.progress %}
{% if tag.type == 'a' %} {% if tag.type == 'a' %}
<{{ tag.type }} href='{{ tag.href }}'>{{ tag.text }}</{{tag.type}}> <{{ tag.type }} href='{{ tag.href }}'>{{ tag.text }}</{{tag.type}}>
{% elsif tag.type == 'br' %}
<br/>
{% elsif tag.type == 'ol' %}
<ol>
{% for li in tag.lis %}
<li>{{ li }}</li>
{% endfor %}
</ol>
{% else %} {% else %}
<{{ tag.type }}>{{ tag.text }}</{{tag.type}}> <{{ tag.type }}>{{ tag.text }}</{{tag.type}}>
{% endif %} {% endif %}

View file

@ -67,6 +67,7 @@ cards:
text: "Back in January we paid some of the best in the field to audit our cryptographic library. Their insight and expertise challenged us, in a very good way. The foundation was solid, but it was clear we improve things here and there. During these months, we could progress our cryptography library into what it is now. This module is complete, but also added workload to the timeline." text: "Back in January we paid some of the best in the field to audit our cryptographic library. Their insight and expertise challenged us, in a very good way. The foundation was solid, but it was clear we improve things here and there. During these months, we could progress our cryptography library into what it is now. This module is complete, but also added workload to the timeline."
- type: a - type: a
text: View Cure53's audit report text: View Cure53's audit report
- type: br
- type: a - type: a
text: Inspect the code of Jess, our cryptography library text: Inspect the code of Jess, our cryptography library
- type: 'h3' - type: 'h3'