mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
remove family display elements, add spectrum explanation
This commit is contained in:
parent
5e41181f25
commit
baddd740af
@ -5,15 +5,11 @@
|
|||||||
<div class="license-family-heading">
|
<div class="license-family-heading">
|
||||||
<h3 class="license-family-name">
|
<h3 class="license-family-name">
|
||||||
<a href="{{ license.url }}">
|
<a href="{{ license.url }}">
|
||||||
{% if license.family %}
|
|
||||||
{{ license.family }}
|
|
||||||
{% else %}
|
|
||||||
{% if license.nickname %}
|
{% if license.nickname %}
|
||||||
{{ license.nickname }}
|
{{ license.nickname }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ license.title }}
|
{{ license.title }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
@ -21,32 +17,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="license-details">
|
<div class="license-details">
|
||||||
<div class="license-variations js-license-variations">
|
|
||||||
<!-- always show this div, even w/o variations, for proper spacing -->
|
|
||||||
{% if license.family %}
|
|
||||||
<ul class="nav-pills js-nav-pills">
|
|
||||||
{% assign variations = site.licenses | where:"hidden",false | where:"family",license.family %}
|
|
||||||
{% for variation in variations %}
|
|
||||||
<li{% if license.id == variation.id %} class="active"{% endif %}><a href="#{{ variation.id | remove: '/licenses/' | slugify }}" data-selected-tab="variation-{{ variation.id | remove: '/licenses/' | slugify }}">
|
|
||||||
{% if variation.nickname != nil %}
|
|
||||||
{{ variation.nickname }}
|
|
||||||
{% else %}
|
|
||||||
{{ variation.title }}
|
|
||||||
{% endif %}
|
|
||||||
</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if license.family %}
|
|
||||||
{% assign variations = site.licenses | where:"hidden",false | where:"family",license.family %}
|
|
||||||
{% else %}
|
|
||||||
{% assign variations = site.licenses | where:"title",license.title %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% for variation in variations %}
|
|
||||||
<div {% if variation.id %}id="{{ variation.id | remove: '/licenses/' | slugify }}" {% endif %}class="variation-tab {% if variation.id %}variation-{{ variation.id | remove: '/licenses/' | slugify }}{% endif %} js-variation-tab{% if license.id == variation.id %} active{% endif %}">
|
|
||||||
<table class="license-rules">
|
<table class="license-rules">
|
||||||
<tr>
|
<tr>
|
||||||
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
||||||
@ -61,7 +31,7 @@
|
|||||||
{% 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 %}
|
||||||
{% assign req = rule_obj.tag %}
|
{% assign req = rule_obj.tag %}
|
||||||
{% if variation[type] contains req %}
|
{% if license[type] contains req %}
|
||||||
<li class="{{ req }}">
|
<li class="{{ req }}">
|
||||||
<span class="license-sprite"></span>
|
<span class="license-sprite"></span>
|
||||||
{{ rule_obj.label }}
|
{{ rule_obj.label }}
|
||||||
@ -73,9 +43,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p class="small"><a href="{{ variation.url }}">View full {{ variation.title }} license »</a></p>
|
<p class="small"><a href="{{ license.url }}">View full {{ license.title }} »</a></p>
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -174,6 +174,7 @@ strong {
|
|||||||
|
|
||||||
.license-family-name {
|
.license-family-name {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license-family-description {
|
.license-family-description {
|
||||||
|
@ -5,7 +5,7 @@ class: license-types
|
|||||||
title: Licenses
|
title: Licenses
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Featured licenses</h2>
|
<p style="margin-bottom:50px">Open source licenses grant permission to everyone to use, modify, and share licensed software for any purpose, subject to conditions preserving the provenance and openness of the software. The following licenses are arranged from one with the strongest of these conditions (GNU AGPLv3) to one with no conditions (Unlicense). Notice that the popular licenses featured on the <a href="/">home page</a> (GNU GPLv3, Apache License 2.0, and MIT License) fall within this spectrum.</p>
|
||||||
|
|
||||||
{% include license-overview.html license-id="agpl-3.0" %}
|
{% include license-overview.html license-id="agpl-3.0" %}
|
||||||
{% include license-overview.html license-id="gpl-3.0" %}
|
{% include license-overview.html license-id="gpl-3.0" %}
|
||||||
@ -14,3 +14,5 @@ title: Licenses
|
|||||||
{% include license-overview.html license-id="apache-2.0" %}
|
{% include license-overview.html license-id="apache-2.0" %}
|
||||||
{% include license-overview.html license-id="mit" %}
|
{% include license-overview.html license-id="mit" %}
|
||||||
{% include license-overview.html license-id="unlicense" %}
|
{% include license-overview.html license-id="unlicense" %}
|
||||||
|
|
||||||
|
The above licenses represent the entire spectrum of open source licenses, from highly protective to unconditional. One of these should work for most new open source projects. Many other open source licenses exist, including older versions of and close substitutes for some of the above. See the resources listed on our <a href="/about/">about page</a> if you'd like to read more.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user