2013-10-30 20:23:28 +02:00
|
|
|
<div class="sidebar">
|
2013-04-09 12:41:25 -04:00
|
|
|
|
2013-12-18 03:28:01 -05:00
|
|
|
<a href="#" data-clipboard-target="license-text" data-proofer-ignore="true" 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">
|
2013-12-15 09:21:24 +02:00
|
|
|
<a href="{{ page.source }}">
|
|
|
|
<span class="license-sprite"></span>
|
|
|
|
Source
|
|
|
|
</a>
|
2013-10-31 12:32:36 +02:00
|
|
|
</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 %}
|
2013-12-15 09:21:24 +02:00
|
|
|
<li class="{{ req }}">
|
|
|
|
<span class="license-sprite"></span>
|
|
|
|
{{ rule_obj.label }}
|
|
|
|
</li>
|
2013-10-31 12:32:36 +02:00
|
|
|
{% 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 -->
|