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