2013-11-06 11:24:34 -05:00
|
|
|
<div class="license-family cf">
|
|
|
|
<div class="license-family-heading">
|
2013-11-18 14:48:32 -08:00
|
|
|
<h3 class="license-family-name"><a href="{{ page.permalink }}">{% if page.category %}{{ page.category }}{% else %}{{ page.title }}{% endif %}</a></h3>
|
2013-11-06 11:24:34 -05:00
|
|
|
|
|
|
|
<p class="license-family-description">{{ page.description }}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="license-details">
|
|
|
|
<div class="license-variations js-license-variations">
|
|
|
|
<!-- always show this div, even w/o variations, for proper spacing -->
|
|
|
|
<ul class="nav-pills js-nav-pills">
|
2013-11-18 14:48:32 -08:00
|
|
|
{% for variation in site.pages %}
|
|
|
|
{% if variation.category and variation.category == page.category %}
|
|
|
|
<li{% if page.slug == variation.slug %} class="active"{% endif %}><a href="#{{ variation.slug }}" data-selected-tab="variation-{{ variation.slug }}">{{ variation.title }}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2013-11-06 11:24:34 -05:00
|
|
|
</ul>
|
|
|
|
</div>
|
2013-11-18 14:48:32 -08:00
|
|
|
{% for variation in site.pages %}
|
|
|
|
{% if variation.category and variation.category == page.category %}
|
|
|
|
<div class="variation-tab variation-{{ variation.slug }} js-variation-tab{% if page.slug == variation.slug %} active{% endif %}">
|
2013-11-06 11:24:34 -05:00
|
|
|
<table class='license-rules'>
|
|
|
|
<tr>
|
|
|
|
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
|
|
|
{% for type in types %}
|
|
|
|
<th class="label">{{ type | capitalize }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
{% for type in types %}
|
|
|
|
<td>
|
|
|
|
<ul class="license-{{ type }}">
|
2013-11-18 14:48:32 -08:00
|
|
|
{% for req in variation[type] %}
|
2013-11-06 11:24:34 -05:00
|
|
|
<li class="{{ req }}">{{ site.rules[type][req].label }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</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
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2013-11-06 11:24:34 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|