Skip to content

Latest commit

 

History

History
98 lines (91 loc) · 3.79 KB

File metadata and controls

98 lines (91 loc) · 3.79 KB
layout default
permalink /appendix/
title Appendix
title_key page_title_appendix
class license-types

{% include t.html key="appendix_intro" %}

{% assign i18n_lang = site.active_lang | default: site.default_lang %} {% assign loc_rules = site.data.i18n[i18n_lang].rules %}

{% 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 or rule_obj.tag contains '--' %} {% continue %} {% endif %} {% capture seen_tags %}{{ seen_tags | append:rule_obj.tag }}{% endcapture %} {% assign lrule = loc_rules[type][rule_obj.tag] %} {% endfor %} {% endfor %} {% assign licenses = site.licenses | sort: "path" %} {% for license in licenses %} {% 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 seen_tags contains req or rule_obj.tag contains '--' %} {% continue %} {% endif %} {% capture seen_tags %}{{ seen_tags | append:req }}{% endcapture %} {% assign seen_req = false %} {% for t in types %} {% for r in license[t] %} {% if r contains req %} {% assign seen_req = true %} {% endif %} {% endfor %} {% endfor %} {% unless seen_req %} {% endunless %} {% endfor %} {% endfor %} {% endfor %}
{% include t.html key="appendix_col_license" %}{{ lrule.label | default: rule_obj.label }}
{{ license.title }} {% if r contains "--" %} {% assign lite = "lite" %} {% else %} {% assign lite = "" %} {% endif %} {% if t == "permissions" %}✓{% elsif t == "conditions" %}ⓘ{% else %}✕{% endif %}

{% include t.html key="appendix_legend_heading" %}

{% include t.html key="appendix_legend_permissions_html" %}

{% include t.html key="appendix_legend_conditions_html" %}

{% include t.html key="appendix_legend_limitations_html" %}

{% for type in types %}

{% if type == "permissions" %}{% include t.html key="rules_permissions" %}{% elsif type == "conditions" %}{% include t.html key="rules_conditions" %}{% else %}{% include t.html key="rules_limitations" %}{% endif %}

{% assign rules = site.data.rules[type] | sort: "label" %} {% for rule_obj in rules %} {% assign req = rule_obj.tag %} {% assign lrule = loc_rules[type][req] %}
{{ lrule.label | default: rule_obj.label }}
{% if req contains "--" %} {% assign lite = " lite" %} {% else %} {% assign lite = "" %} {% endif %} {% if type == "permissions" %}✓{% elsif type == "conditions" %}ⓘ{% else %}✕{% endif %} {{ lrule.description | default: rule_obj.description }}
{% endfor %}
{% endfor %}