1
0
mirror of https://github.com/github/choosealicense.com synced 2024-07-03 00:49:11 +02:00

Merge pull request #253 from github/nicknames

Add license nicknames for license list
This commit is contained in:
Ben Balter 2015-03-07 16:47:29 -05:00
commit 5d8a479b72
9 changed files with 15 additions and 1 deletions

View File

@ -16,7 +16,13 @@
<ul class="nav-pills js-nav-pills">
{% for variation in site.licenses %}
{% if variation.category and variation.category == license.category %}
<li{% if license.tab-slug == variation.tab-slug %} class="active"{% endif %}><a href="#{{ variation.tab-slug }}" data-selected-tab="variation-{{ variation.tab-slug }}">{{ variation.title }}</a></li>
<li{% if license.tab-slug == variation.tab-slug %} class="active"{% endif %}><a href="#{{ variation.tab-slug }}" data-selected-tab="variation-{{ variation.tab-slug }}">
{% if variation.nickname != nil %}
{{ variation.nickname }}
{% else %}
{{ variation.title }}
{% endif %}
</a></li>
{% endif %}
{% endfor %}
</ul>

View File

@ -1,5 +1,6 @@
---
title: GNU Affero General Public License v3.0
nickname: GNU Affero GPL v3.0
category: GPL
tab-slug: agpl-v3
hide-from-license-list: true

View File

@ -1,6 +1,7 @@
---
layout: license
title: BSD 2-clause "Simplified" License
nickname: Simplified BSD
category: BSD
tab-slug: bsd
hide-from-license-list: true

View File

@ -1,6 +1,7 @@
---
layout: license
title: BSD 3-clause "New" or "Revised" License
nickname: New BSD
category: BSD
tab-slug: bsd-3
hide-from-license-list: true

View File

@ -1,6 +1,7 @@
---
layout: license
title: Creative Commons Zero v1.0 Universal
nickname: CC0 1.0 Universal
category: Public Domain Dedication
tab-slug: cc0
permalink: /licenses/cc0/

View File

@ -1,5 +1,6 @@
---
title: GNU General Public License v2.0
nickname: GNU GPL v2.0
category: GPL
tab-slug: gpl-v2
hide-from-license-list: false

View File

@ -1,5 +1,6 @@
---
title: GNU General Public License v3.0
nickname: GNU GPL v2.0
category: GPL
tab-slug: gpl-v3
hide-from-license-list: true

View File

@ -1,6 +1,7 @@
---
layout: license
title: GNU Lesser General Public License v2.1
nickname: GNU LGPL v2.1
category: LGPL
tab-slug: lgpl-v2_1
redirect_from: /licenses/lgpl-v2.1/

View File

@ -1,6 +1,7 @@
---
layout: license
title: GNU Lesser General Public License v3.0
nickname: GNU LGPL v3.0
category: LGPL
tab-slug: lgpl-v3
hide-from-license-list: true