mirror of
https://github.com/github/choosealicense.com
synced 2024-11-12 22:48:54 +01:00
update templates to use using map
This commit is contained in:
parent
e655e40c30
commit
0e344b6713
@ -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>
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user