mirror of
https://github.com/github/choosealicense.com
synced 2025-01-03 10:31:44 +01:00
Merge pull request #409 from github/merge-patent-cols
Single patent column handles permission and limitation cases
This commit is contained in:
commit
b67f10b769
27
appendix.md
27
appendix.md
@ -8,27 +8,46 @@ class: license-types
|
|||||||
All licenses described in the choosealicense.com [repository](https://github.com/github/choosealicense.com), in a table.
|
All licenses described in the choosealicense.com [repository](https://github.com/github/choosealicense.com), in a table.
|
||||||
|
|
||||||
<table border style="font-size: xx-small">
|
<table border style="font-size: xx-small">
|
||||||
|
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>License</th>
|
<th>License</th>
|
||||||
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
{% assign seen_tags = '' %}
|
||||||
{% for type in types %}
|
{% for type in types %}
|
||||||
{% assign rules = site.data.rules[type] | sort: "label" %}
|
{% assign rules = site.data.rules[type] | sort: "label" %}
|
||||||
{% for rule_obj in rules %}
|
{% for rule_obj in rules %}
|
||||||
|
{% if seen_tags contains rule_obj.tag %}
|
||||||
|
{% continue %}
|
||||||
|
{% endif %}
|
||||||
|
{% capture seen_tags %}{{ seen_tags | append:rule_obj.tag }}{% endcapture %}
|
||||||
<th style="text-align: center; width:7%">{{ rule_obj.label }}</th>
|
<th style="text-align: center; width:7%">{{ rule_obj.label }}</th>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
{% for license in site.licenses | sort: 'path' %}
|
{% for license in site.licenses | sort: 'path' %}
|
||||||
<tr style="height: 3em"><td><a href="{{ license.id }}">{{ license.title }}</a></td>
|
<tr style="height: 3em"><td><a href="{{ license.id }}">{{ license.title }}</a></td>
|
||||||
|
{% assign seen_tags = '' %}
|
||||||
{% for type in types %}
|
{% for type in types %}
|
||||||
{% assign rules = site.data.rules[type] | sort: "label" %}
|
{% assign rules = site.data.rules[type] | sort: "label" %}
|
||||||
{% for rule_obj in rules %}
|
{% for rule_obj in rules %}
|
||||||
<td class="license-{{ type }}" style="text-align:center">{% assign req = rule_obj.tag %}
|
{% assign req = rule_obj.tag %}
|
||||||
{% if license[type] contains req %}
|
{% 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="{{ req }}">
|
||||||
<span class="license-sprite {{ req }}"></span>
|
<span class="license-sprite {{ req }}"></span>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}</td>
|
</td>
|
||||||
|
{% assign seen_req = true %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% unless seen_req %}
|
||||||
|
<td></td>
|
||||||
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user