1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Hide pill nav for a single license

This commit is contained in:
Haacked 2013-11-18 17:00:15 -08:00
parent 4ce71929ad
commit 6f36d6bfcb
16 changed files with 13 additions and 17 deletions

View File

@ -8,17 +8,19 @@
<div class="license-details">
<div class="license-variations js-license-variations">
<!-- always show this div, even w/o variations, for proper spacing -->
{% if page.tab-slug %}
<ul class="nav-pills js-nav-pills">
{% 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>
<li{% if page.tab-slug == variation.tab-slug %} class="active"{% endif %}><a href="#{{ variation.tab-slug }}" data-selected-tab="variation-{{ variation.tab-slug }}">{{ variation.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
{% 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 %}">
<div class="variation-tab variation-{{ variation.tab-slug }} js-variation-tab{% if page.tab-slug == variation.tab-slug %} active{% endif %}">
<table class='license-rules'>
<tr>
{% assign types = "required|permitted|forbidden" | split: "|" %}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
layout: license
title: CC0 1.0 Universal
category: Public Domain Dedication
slug: cc0
tab-slug: cc0
permalink: /licenses/cc0/
class: license-types
hide-from-license-list: true

View File

@ -2,7 +2,6 @@
layout: license
title: Eclipse Public License v1.0
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.

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,6 @@
layout: license
title: MIT License
category: mit
slug: mit
permalink: /licenses/mit/
source: http://opensource.org/licenses/MIT

View File

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

View File

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

View File

@ -2,7 +2,7 @@
layout: license
title: The Unlicense
category: Public Domain Dedication
slug: unlicense
tab-slug: unlicense
permalink: /licenses/unlicense/
class: license-types
filename: UNLICENSE