This commit is contained in:
Haacked 2013-11-18 14:48:32 -08:00
Родитель f28894d905
Коммит 94389c5873
15 изменённых файлов: 41 добавлений и 27 удалений

Просмотреть файл

@ -1,6 +1,6 @@
<div class="license-family cf">
<div class="license-family-heading">
<h3 class="license-family-name"><a href="{{ page.permalink }}">{% if page.family-title %}{{ page.family-title }}{% else %}{{ page.title }}{% endif %}</a></h3>
<h3 class="license-family-name"><a href="{{ page.permalink }}">{% if page.category %}{{ page.category }}{% else %}{{ page.title }}{% endif %}</a></h3>
<p class="license-family-description">{{ page.description }}</p>
</div>
@ -9,12 +9,16 @@
<div class="license-variations js-license-variations">
<!-- always show this div, even w/o variations, for proper spacing -->
<ul class="nav-pills js-nav-pills">
<li class="active"><a href="#" data-selected-tab="variation-gpl-v2">GPL v2</a></li>
<li><a href="#" data-selected-tab="variation-gpl-v3">GPL v3</a></li>
<li><a href="#" data-selected-tab="variation-affero-gpl">Affero GPL</a></li>
{% for variation in site.pages %}
{% if variation.category and variation.category == page.category %}
<li{% if page.slug == variation.slug %} class="active"{% endif %}><a href="#{{ variation.slug }}" data-selected-tab="variation-{{ variation.slug }}">{{ variation.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="variation-tab variation-gpl-v2 js-variation-tab active">
{% for variation in site.pages %}
{% if variation.category and variation.category == page.category %}
<div class="variation-tab variation-{{ variation.slug }} js-variation-tab{% if page.slug == variation.slug %} active{% endif %}">
<table class='license-rules'>
<tr>
{% assign types = "required|permitted|forbidden" | split: "|" %}
@ -26,7 +30,7 @@
{% for type in types %}
<td>
<ul class="license-{{ type }}">
{% for req in page[type] %}
{% for req in variation[type] %}
<li class="{{ req }}">{{ site.rules[type][req].label }}</li>
{% endfor %}
</ul>
@ -34,16 +38,10 @@
{% endfor %}
</tr>
</table>
<p class="small"><a href="{{ page.permalink }}">View full GPL v2 license »</a></p>
</div>
<div class="variation-tab variation-gpl-v3 js-variation-tab">
GPL v3 table
<p class="small"><a href="{{ page.permalink }}">View full GPL v3 license »</a></p>
</div>
<div class="variation-tab variation-affero-gpl js-variation-tab">
Affero GPL table
<p class="small"><a href="{{ page.permalink }}">View full Affero GPL license »</a></p>
<p class="small"><a href="{{ variation.permalink }}">View full {{ variation.title }} license »</a></p>
</div>
{% endif %}
{% endfor %}
</div>
</div>

Просмотреть файл

@ -1,6 +1,7 @@
---
title: Affero GPL
family-title: GPL
category: GPL
slug: agpl
hide-from-license-list: true
layout: license
permalink: /licenses/agpl/

Просмотреть файл

@ -1,6 +1,7 @@
---
title: Apache v2 License
family-title: Apache
category: Apache
slug: apache
layout: license
permalink: /licenses/apache/

Просмотреть файл

@ -1,7 +1,8 @@
---
layout: license
title: Artistic License 2.0
family-title: Artistic
category: Artistic
slug: artistic
permalink: /licenses/artistic/
source: http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt

Просмотреть файл

@ -1,7 +1,8 @@
---
layout: license
title: BSD (3-Clause) License
family-title: BSD
category: BSD
slug: bsd-3
hide-from-license-list: true
permalink: /licenses/bsd-3-clause/

Просмотреть файл

@ -1,7 +1,8 @@
---
layout: license
title: BSD 2-Clause license
family-title: BSD
category: BSD
slug: bsd
hide-from-license-list: false
permalink: /licenses/bsd/

Просмотреть файл

@ -1,7 +1,8 @@
---
layout: license
title: Eclipse Public License v1.0
family-title: Eclipse
category: Eclipse
slug: eclipse
permalink: /licenses/eclipse/
description: This commercially-friendly copyleft license provides the ability to commercially license binaries; a modern royalty-free patent license grant; and the ability for linked works to use other licenses, including commercial ones.

Просмотреть файл

@ -1,6 +1,7 @@
---
title: GPL v2
family-title: GPL
category: GPL
slug: gpl-v2
hide-from-license-list: false
layout: license
permalink: /licenses/gpl-v2/

Просмотреть файл

@ -1,6 +1,7 @@
---
title: GPL v3
family-title: GPL
category: GPL
slug: gpl-v3
hide-from-license-list: true
layout: license
permalink: /licenses/gpl-v3/

Просмотреть файл

@ -1,7 +1,8 @@
---
layout: license
title: LGPL v2.1
family-title: LGPL
category: LGPL
slug: lgpl-v2.1
permalink: /licenses/lgpl-v2.1/
source: http://www.gnu.org/licenses/lgpl-2.1.txt

Просмотреть файл

@ -1,7 +1,8 @@
---
layout: license
title: LGPL v3
family-title: LGPL
category: LGPL
slug: lgpl-v3
hide-from-license-list: true
permalink: /licenses/lgpl-v3/
source: http://www.gnu.org/licenses/lgpl-3.0.txt

Просмотреть файл

@ -1,7 +1,8 @@
---
layout: license
title: MIT License
family-title: Apache
category: mit
slug: mit
permalink: /licenses/mit/
source: http://opensource.org/licenses/MIT

Просмотреть файл

@ -1,7 +1,8 @@
---
layout: license
title: Mozilla Public License Version 2.0
family-title: Mozilla
category: Mozilla
slug: mozilla
permalink: /licenses/mozilla/
source: http://www.mozilla.org/MPL/2.0/

Просмотреть файл

@ -1,6 +1,8 @@
---
layout: license
permalink: /licenses/no-license/
category: No License
slug: no-license
class: license-types
title: No License

Просмотреть файл

@ -3,6 +3,8 @@ layout: license
permalink: /licenses/public-domain/
class: license-types
title: Public Domain (Unlicense)
category: Public Domain
slug: unlicense
filename: UNLICENSE
source: http://unlicense.org/UNLICENSE