2013-12-09 19:05:34 +01:00
|
|
|
<div class="license-family clearfix">
|
2013-11-06 17:24:34 +01:00
|
|
|
<div class="license-family-heading">
|
2014-07-31 18:36:56 +02:00
|
|
|
<h3 class="license-family-name">
|
2015-08-22 21:25:16 +02:00
|
|
|
<a href="{{ license.url }}">
|
2015-09-09 01:04:34 +02:00
|
|
|
{% if license.family %}
|
|
|
|
{{ license.family }}
|
2015-08-22 21:25:16 +02:00
|
|
|
{% else %}
|
|
|
|
{% if license.nickname %}
|
|
|
|
{{ license.nickname }}
|
|
|
|
{% else %}
|
|
|
|
{{ license.title }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2014-07-31 18:36:56 +02:00
|
|
|
</a>
|
|
|
|
</h3>
|
2013-11-06 17:24:34 +01:00
|
|
|
|
2014-07-31 18:36:56 +02:00
|
|
|
<p class="license-family-description">{{ license.description }}</p>
|
2013-11-06 17:24:34 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="license-details">
|
|
|
|
<div class="license-variations js-license-variations">
|
|
|
|
<!-- always show this div, even w/o variations, for proper spacing -->
|
2015-09-09 01:04:34 +02:00
|
|
|
{% if license.family %}
|
2013-11-06 17:24:34 +01:00
|
|
|
<ul class="nav-pills js-nav-pills">
|
2015-09-09 01:04:34 +02:00
|
|
|
{% assign variations = site.licenses | where:"hidden",false | where:"family",license.family %}
|
2015-08-19 22:25:47 +02:00
|
|
|
{% for variation in variations %}
|
2016-02-14 02:57:44 +01:00
|
|
|
<li{% if license.id == variation.id %} class="active"{% endif %}><a href="#{{ variation.id | remove: '/licenses/' | slugify }}" data-selected-tab="variation-{{ variation.id | remove: '/licenses/' | slugify }}">
|
2015-03-07 20:11:34 +01:00
|
|
|
{% if variation.nickname != nil %}
|
|
|
|
{{ variation.nickname }}
|
|
|
|
{% else %}
|
|
|
|
{{ variation.title }}
|
|
|
|
{% endif %}
|
|
|
|
</a></li>
|
2013-11-18 23:48:32 +01:00
|
|
|
{% endfor %}
|
2013-11-06 17:24:34 +01:00
|
|
|
</ul>
|
2013-11-19 02:00:15 +01:00
|
|
|
{% endif %}
|
2013-11-06 17:24:34 +01:00
|
|
|
</div>
|
2016-03-01 22:33:15 +01:00
|
|
|
|
2015-09-09 01:04:34 +02:00
|
|
|
{% if license.family %}
|
|
|
|
{% assign variations = site.licenses | where:"hidden",false | where:"family",license.family %}
|
2015-08-22 21:25:16 +02:00
|
|
|
{% else %}
|
|
|
|
{% assign variations = site.licenses | where:"title",license.title %}
|
|
|
|
{% endif %}
|
|
|
|
|
2015-08-19 22:25:47 +02:00
|
|
|
{% for variation in variations %}
|
2016-02-14 02:57:44 +01:00
|
|
|
<div {% if variation.id %}id="{{ variation.id | remove: '/licenses/' | slugify }}" {% endif %}class="variation-tab {% if variation.id %}variation-{{ variation.id | remove: '/licenses/' | slugify }}{% endif %} js-variation-tab{% if license.id == variation.id %} active{% endif %}">
|
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 %}
|
2013-11-30 03:05:49 +01:00
|
|
|
{% if variation[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>
|
2015-08-22 21:25:16 +02:00
|
|
|
<p class="small"><a href="{{ variation.url }}">View full {{ variation.title }} license »</a></p>
|
2013-11-06 17:24:34 +01:00
|
|
|
</div>
|
2013-11-18 23:48:32 +01:00
|
|
|
{% endfor %}
|
2013-11-06 17:24:34 +01:00
|
|
|
</div>
|
|
|
|
</div>
|