2016-05-09 21:12:38 +02:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
permalink: /appendix/
|
|
|
|
title: Appendix
|
|
|
|
class: license-types
|
|
|
|
---
|
|
|
|
|
|
|
|
All licenses described in the choosealicense.com [repository](https://github.com/github/choosealicense.com), in a table.
|
|
|
|
|
|
|
|
<table border style="font-size: xx-small">
|
2016-05-10 23:59:04 +02:00
|
|
|
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
2016-05-10 19:43:44 +02:00
|
|
|
<tr>
|
|
|
|
<th>License</th>
|
2016-05-10 23:59:04 +02:00
|
|
|
{% assign seen_tags = '' %}
|
2016-05-10 19:43:44 +02:00
|
|
|
{% for type in types %}
|
|
|
|
{% assign rules = site.data.rules[type] | sort: "label" %}
|
|
|
|
{% for rule_obj in rules %}
|
2016-05-10 23:59:04 +02:00
|
|
|
{% if seen_tags contains rule_obj.tag %}
|
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% capture seen_tags %}{{ seen_tags | append:rule_obj.tag }}{% endcapture %}
|
2016-05-10 19:43:44 +02:00
|
|
|
<th style="text-align: center; width:7%">{{ rule_obj.label }}</th>
|
|
|
|
{% endfor %}
|
2016-05-09 21:12:38 +02:00
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for license in site.licenses | sort: 'path' %}
|
|
|
|
<tr style="height: 3em"><td><a href="{{ license.id }}">{{ license.title }}</a></td>
|
2016-05-10 23:59:04 +02:00
|
|
|
{% assign seen_tags = '' %}
|
2016-05-09 21:12:38 +02:00
|
|
|
{% for type in types %}
|
|
|
|
{% assign rules = site.data.rules[type] | sort: "label" %}
|
|
|
|
{% for rule_obj in rules %}
|
2016-05-10 23:59:04 +02:00
|
|
|
{% assign req = rule_obj.tag %}
|
|
|
|
{% if seen_tags contains req %}
|
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% capture seen_tags %}{{ seen_tags | append:req }}{% endcapture %}
|
|
|
|
{% assign seen_req = false %}
|
|
|
|
{% for t in types %}
|
|
|
|
{% if license[t] contains req %}
|
|
|
|
<td class="license-{{ t }}" style="text-align:center">
|
|
|
|
<span class="{{ req }}">
|
|
|
|
<span class="license-sprite {{ req }}"></span>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
{% assign seen_req = true %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% unless seen_req %}
|
|
|
|
<td></td>
|
|
|
|
{% endunless %}
|
2016-05-09 21:12:38 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|