2013-12-09 20:05:34 +02:00
|
|
|
<div class="license-family clearfix">
|
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">
|
|
|
|
<a href="{{ license.permalink }}">
|
|
|
|
{% if license.category %}{{ license.category }}{% else %}{{ license.title }}{% endif %}
|
|
|
|
</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">
|
|
|
|
<div class="license-variations js-license-variations">
|
|
|
|
<!-- always show this div, even w/o variations, for proper spacing -->
|
2014-07-31 12:36:56 -04:00
|
|
|
{% if license.tab-slug %}
|
2013-11-06 11:24:34 -05:00
|
|
|
<ul class="nav-pills js-nav-pills">
|
2015-08-19 16:25:47 -04:00
|
|
|
{% assign variations = site.licenses | where:"hidden",false | where:"category",license.category %}
|
|
|
|
{% for variation in variations %}
|
2015-03-07 14:11:34 -05:00
|
|
|
<li{% if license.tab-slug == variation.tab-slug %} class="active"{% endif %}><a href="#{{ variation.tab-slug }}" data-selected-tab="variation-{{ variation.tab-slug }}">
|
|
|
|
{% if variation.nickname != nil %}
|
|
|
|
{{ variation.nickname }}
|
|
|
|
{% else %}
|
|
|
|
{{ variation.title }}
|
|
|
|
{% endif %}
|
|
|
|
</a></li>
|
2013-11-18 14:48:32 -08:00
|
|
|
{% endfor %}
|
2013-11-06 11:24:34 -05:00
|
|
|
</ul>
|
2013-11-18 17:00:15 -08:00
|
|
|
{% endif %}
|
2013-11-06 11:24:34 -05:00
|
|
|
</div>
|
2015-08-19 16:25:47 -04:00
|
|
|
{% assign variations = site.licenses | where:"hidden",false | where:"category",license.category %}
|
|
|
|
{% for variation in variations %}
|
2014-07-31 12:36:56 -04:00
|
|
|
<div {% if variation.tab-slug %}id="{{ variation.tab-slug }}" {% endif %}class="variation-tab {% if variation.tab-slug %}variation-{{ variation.tab-slug }}{% endif %} js-variation-tab{% if license.tab-slug == variation.tab-slug %} active{% endif %}">
|
2013-12-10 09:48:49 +02:00
|
|
|
<table class="license-rules">
|
2013-11-06 11:24:34 -05:00
|
|
|
<tr>
|
|
|
|
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
|
|
|
{% 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 %}
|
2013-11-29 21:05:49 -05:00
|
|
|
{% if variation[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>
|
2013-11-18 14:48:32 -08:00
|
|
|
<p class="small"><a href="{{ variation.permalink }}">View full {{ variation.title }} license »</a></p>
|
2013-11-06 11:24:34 -05:00
|
|
|
</div>
|
2013-11-18 14:48:32 -08:00
|
|
|
{% endfor %}
|
2013-11-06 11:24:34 -05:00
|
|
|
</div>
|
|
|
|
</div>
|