diff --git a/appendix.md b/appendix.md index f0c596e..0860d12 100644 --- a/appendix.md +++ b/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.
License | - {% assign types = "permissions|conditions|limitations" | split: "|" %} + {% assign seen_tags = '' %} {% for type in types %} {% assign rules = site.data.rules[type] | sort: "label" %} {% for rule_obj in rules %} + {% if seen_tags contains rule_obj.tag %} + {% continue %} + {% endif %} + {% capture seen_tags %}{{ seen_tags | append:rule_obj.tag }}{% endcapture %}{{ rule_obj.label }} | {% endfor %} {% endfor %}||
---|---|---|---|
{{ license.title }} | + {% assign seen_tags = '' %} {% for type in types %} {% assign rules = site.data.rules[type] | sort: "label" %} {% for rule_obj in rules %} -{% assign req = rule_obj.tag %} - {% if license[type] contains req %} - - - - {% endif %} | + {% 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 %} ++ + + + | + {% assign seen_req = true %} + {% endif %} + {% endfor %} + {% unless seen_req %} ++ {% endunless %} {% endfor %} {% endfor %} |