1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

same-license--variations

This commit is contained in:
Mike Linksvayer 2017-02-19 14:37:32 -08:00
parent d99a0a9b4d
commit 6ae1f697d7
7 changed files with 26 additions and 15 deletions

View File

@ -31,6 +31,15 @@ conditions:
- description: Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used.
label: Same License
tag: same-license
- description: Modifications of existing files must be released under the same license when distributing the software. In some cases a similar or related license may be used.
label: Same License (File)
tag: same-license--file
- description: Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used, or this condition may not apply to works that use the software as a library.
label: Same License (Library)
tag: same-license--library
- description: Modifications must be released under the same license when distributing the software in source form.
label: Same License (Source)
tag: same-license--source
limitations:
- description: This license explicitly states that it does NOT grant you trademark rights, even though licenses without such a statement probably do not grant you any implicit trademark rights.

View File

@ -24,7 +24,7 @@ permissions:
conditions:
- disclose-source
- include-copyright
- same-license
- same-license--source
limitations:
- liability

View File

@ -22,7 +22,7 @@ conditions:
- include-copyright
- disclose-source
- document-changes
- same-license
- same-license--library
limitations:
- liability

View File

@ -23,7 +23,7 @@ conditions:
- include-copyright
- disclose-source
- document-changes
- same-license
- same-license--library
limitations:
- liability

View File

@ -26,7 +26,7 @@ permissions:
conditions:
- disclose-source
- include-copyright
- same-license
- same-license--file
limitations:
- liability

View File

@ -17,7 +17,7 @@ permissions:
conditions:
- disclose-source
- include-copyright
- same-license
- same-license--file
limitations:
- warranty

View File

@ -17,7 +17,7 @@ If you're here to choose a license, **[start from the home page](/)** to see a f
{% for type in types %}
{% assign rules = site.data.rules[type] | sort: "label" %}
{% for rule_obj in rules %}
{% if seen_tags contains rule_obj.tag %}
{% if seen_tags contains rule_obj.tag or rule_obj.tag contains '--' %}
{% continue %}
{% endif %}
{% capture seen_tags %}{{ seen_tags | append:rule_obj.tag }}{% endcapture %}
@ -33,21 +33,23 @@ If you're here to choose a license, **[start from the home page](/)** to see a f
{% assign rules = site.data.rules[type] | sort: "label" %}
{% for rule_obj in rules %}
{% assign req = rule_obj.tag %}
{% if seen_tags contains req %}
{% 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 %}
{% if license[t] contains req %}
{% for r in license[t] %}
{% if r contains req %}
<td class="license-{{ t }}" style="text-align:center">
<span class="{{ req }}">
<span class="license-sprite {{ req }}"></span>
<span class="{{ r }}">
<span class="license-sprite {{ r }}"></span>
</span>
</td>
{% assign seen_req = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% unless seen_req %}
<td></td>
{% endunless %}