1
0
mirror of https://github.com/github/choosealicense.com synced 2024-06-17 00:19:51 +02:00
choosealicense.com/_layouts/license.html

57 lines
1.7 KiB
HTML
Raw Normal View History

2013-07-13 16:38:53 +02:00
{% include header.html %}
2013-12-09 19:05:34 +01:00
<div class="clearfix">
2013-10-30 19:23:28 +01:00
<div class="license-body">
{% if page.nickname %}
<p class="license-nickname">
{{ page.nickname }}
</p>
{% endif %}
<p>
{{ page.description }}
</p>
<div class="license-page-details">
<table class="license-rules">
<tr>
{% assign types = "permissions|conditions|limitations" | split: "|" %}
{% for type in types %}
<th class="label">{{ type | capitalize }}</th>
{% endfor %}
</tr>
<tr>
{% for type in types %}
<td>
<ul class="license-{{ type }}">
{% assign rules = site.data.rules[type] | sort: "label" %}
{% for rule_obj in rules %}
{% assign req = rule_obj.tag %}
{% if page[type] contains req %}
<li class="{{ req }}">
<span class="license-sprite"></span>
{{ rule_obj.label }}
</li>
{% endif %}
{% endfor %}
</ul>
</td>
{% endfor %}
</tr>
</table>
</div>
<pre id="license-text">{{ content | replace:"<", "&lt;" | replace:">", "&gt;" }}</pre>
2013-12-09 19:05:34 +01:00
</div> <!-- /license-body -->
{% include sidebar.html %}
2013-12-09 19:05:34 +01:00
</div> <!-- /clearfix -->
2013-07-17 18:57:57 +02:00
{% include footer.html %}