2016-04-07 16:08:58 -07:00
|
|
|
{% assign id = "/licenses/" | append: include.license-id %}
|
|
|
|
{% assign licenses = site.licenses | where:"id", id %}
|
|
|
|
{% for license in licenses %}
|
2016-04-07 18:48:15 -07:00
|
|
|
<div class="license-family clearfix" id="{{ include.license-id | slugify }}">
|
2013-11-06 11:24:34 -05:00
|
|
|
<div class="license-family-heading">
|
2014-07-31 12:36:56 -04:00
|
|
|
<h3 class="license-family-name">
|
2015-08-22 15:25:16 -04:00
|
|
|
<a href="{{ license.url }}">
|
|
|
|
{% if license.nickname %}
|
|
|
|
{{ license.nickname }}
|
|
|
|
{% else %}
|
|
|
|
{{ license.title }}
|
|
|
|
{% endif %}
|
2014-07-31 12:36:56 -04:00
|
|
|
</a>
|
|
|
|
</h3>
|
2013-11-06 11:24:34 -05:00
|
|
|
|
2014-07-31 12:36:56 -04:00
|
|
|
<p class="license-family-description">{{ license.description }}</p>
|
2013-11-06 11:24:34 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="license-details">
|
2013-12-10 09:48:49 +02:00
|
|
|
<table class="license-rules">
|
2013-11-06 11:24:34 -05:00
|
|
|
<tr>
|
2016-03-01 13:33:15 -08:00
|
|
|
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
2013-11-06 11:24:34 -05:00
|
|
|
{% for type in types %}
|
|
|
|
<th class="label">{{ type | capitalize }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-11-29 20:57:35 -05:00
|
|
|
{% for type in types %}
|
|
|
|
<td>
|
|
|
|
<ul class="license-{{ type }}">
|
2014-07-31 12:36:56 -04:00
|
|
|
{% assign rules = site.data.rules[type] | sort: "label" %}
|
2013-11-29 20:57:35 -05:00
|
|
|
{% for rule_obj in rules %}
|
|
|
|
{% assign req = rule_obj.tag %}
|
2016-04-07 17:49:56 -07:00
|
|
|
{% if license[type] contains req %}
|
2013-12-15 09:21:24 +02:00
|
|
|
<li class="{{ req }}">
|
|
|
|
<span class="license-sprite"></span>
|
|
|
|
{{ rule_obj.label }}
|
|
|
|
</li>
|
2013-11-29 20:57:35 -05:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
2013-11-06 11:24:34 -05:00
|
|
|
</tr>
|
|
|
|
</table>
|
2016-04-07 17:49:56 -07:00
|
|
|
<p class="small"><a href="{{ license.url }}">View full {{ license.title }} »</a></p>
|
2013-11-06 11:24:34 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-04-07 16:08:58 -07:00
|
|
|
{% endfor %}
|