1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

Add 's' when only a single license

When `using.size` == 1, add an 's' to the using sentence.
This commit is contained in:
Ian Lee 2016-04-09 15:24:15 -07:00
parent 4a39b82795
commit ff122da796

View File

@ -12,6 +12,6 @@
<a href="{{ hash[1] }}">{{ hash[0] }}</a>{% if last == false %},{% endif %}
{% endfor %}
{% endfor %}
use the {% if license.nickname %}{{ license.nickname }}{% else %}{{ license.title }}{% endif %}.
use{% if using.size == 1 %}s{% endif %} the {% if license.nickname %}{{ license.nickname }}{% else %}{{ license.title }}{% endif %}.
{% endif %}
{% endfor %}