2013-10-30 20:23:28 +02:00
|
|
|
<div class="sidebar">
|
2013-04-09 12:41:25 -04:00
|
|
|
|
|
|
|
<a href="#" data-clipboard-target="license-text" class="js-clipboard-button button">Copy license text to clipboard</a>
|
2013-10-31 12:32:36 +02:00
|
|
|
<div class="how-to-apply">
|
|
|
|
<h5>How to apply this license</h5>
|
|
|
|
<p>
|
|
|
|
{{ page.how }}
|
|
|
|
</p>
|
|
|
|
{% if page.note %}
|
|
|
|
<p class="note">
|
|
|
|
<strong>Note: </strong> {{ page.note }}
|
|
|
|
</p>
|
2013-10-23 07:37:32 +02:00
|
|
|
{% endif %}
|
2013-10-31 12:32:36 +02:00
|
|
|
</div>
|
|
|
|
{% if page.source %}
|
|
|
|
<div class="source">
|
|
|
|
<a href="{{ page.source }}">Source</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2013-04-09 12:41:25 -04:00
|
|
|
|
2013-10-31 12:32:36 +02:00
|
|
|
<div class="license-rules license-rules-sidebar">
|
2013-04-09 12:41:25 -04:00
|
|
|
|
2013-10-31 12:32:36 +02:00
|
|
|
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
|
|
|
{% for type in types %}
|
|
|
|
<h3>{{ type | capitalize }}</h3>
|
|
|
|
<ul class="license-{{ type }}">
|
2013-12-10 09:48:49 +02:00
|
|
|
{% assign rules = site.rules[type] | sort: "label" %}
|
2013-10-31 12:32:36 +02:00
|
|
|
{% for rule_obj in rules %}
|
|
|
|
{% assign req = rule_obj.tag %}
|
|
|
|
{% if page[type] contains req %}
|
|
|
|
<li class="{{ req }}">{{ rule_obj.label }}</li>
|
|
|
|
{% endif %}
|
2013-04-09 12:41:25 -04:00
|
|
|
{% endfor %}
|
2013-10-31 12:32:36 +02:00
|
|
|
</ul>
|
|
|
|
{% endfor %}
|
2013-04-09 12:41:25 -04:00
|
|
|
|
2013-10-31 12:32:36 +02:00
|
|
|
</div>
|
2013-04-09 12:41:25 -04:00
|
|
|
|
2013-10-31 12:32:36 +02:00
|
|
|
{% if page.using %}
|
|
|
|
<div class="projects-with-license">
|
|
|
|
<h3>Who's using this license?</h3>
|
|
|
|
<ul>
|
|
|
|
{% for using in page.using %}
|
|
|
|
<li><a href="{{ using[1] }}" target="_blank">{{ using[0] }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2013-09-25 08:58:07 -04:00
|
|
|
|
2013-10-31 12:32:36 +02:00
|
|
|
</div> <!-- /sidebar -->
|