update templates to use using map

This commit is contained in:
Mike Linksvayer 2020-10-03 11:31:20 -07:00
parent e655e40c30
commit 0e344b6713
2 changed files with 2 additions and 6 deletions

View File

@ -45,9 +45,7 @@
<h3>Who's using this license?</h3>
<ul>
{% for using in page.using %}
{% for hash in using %}
<li><a href="{{ hash[1] }}" target="_blank">{{ hash[0] }}</a></li>
{% endfor %}
<li><a href="{{ using[1] }}" target="_blank">{{ using[0] }}</a></li>
{% endfor %}
</ul>
</div>

View File

@ -8,9 +8,7 @@
{% if last and using.size > 1 %}
and
{% endif %}
{% for hash in used %}
<a href="{{ hash[1] }}">{{ hash[0] }}</a>{% if last == false %},{% endif %}
{% endfor %}
<a href="{{ used[1] }}">{{ used[0] }}</a>{% if last == false %},{% endif %}
{% endfor %}
use{% if using.size == 1 %}s{% endif %} the {% if license.nickname %}{{ license.nickname }}{% else %}{{ license.title }}{% endif %}.
{% endif %}