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:
parent
4ce71929ad
commit
6f36d6bfcb
@ -8,17 +8,19 @@
|
|||||||
<div class="license-details">
|
<div class="license-details">
|
||||||
<div class="license-variations js-license-variations">
|
<div class="license-variations js-license-variations">
|
||||||
<!-- always show this div, even w/o variations, for proper spacing -->
|
<!-- always show this div, even w/o variations, for proper spacing -->
|
||||||
|
{% if page.tab-slug %}
|
||||||
<ul class="nav-pills js-nav-pills">
|
<ul class="nav-pills js-nav-pills">
|
||||||
{% for variation in site.pages %}
|
{% for variation in site.pages %}
|
||||||
{% if variation.category and variation.category == page.category %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% for variation in site.pages %}
|
{% for variation in site.pages %}
|
||||||
{% if variation.category and variation.category == page.category %}
|
{% 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'>
|
<table class='license-rules'>
|
||||||
<tr>
|
<tr>
|
||||||
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Affero GPL
|
title: Affero GPL
|
||||||
category: GPL
|
category: GPL
|
||||||
slug: agpl
|
tab-slug: agpl
|
||||||
hide-from-license-list: true
|
hide-from-license-list: true
|
||||||
layout: license
|
layout: license
|
||||||
permalink: /licenses/agpl/
|
permalink: /licenses/agpl/
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Apache v2 License
|
title: Apache v2 License
|
||||||
category: Apache
|
category: Apache
|
||||||
slug: apache
|
|
||||||
layout: license
|
layout: license
|
||||||
permalink: /licenses/apache/
|
permalink: /licenses/apache/
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: Artistic License 2.0
|
title: Artistic License 2.0
|
||||||
category: Artistic
|
category: Artistic
|
||||||
slug: artistic
|
|
||||||
permalink: /licenses/artistic/
|
permalink: /licenses/artistic/
|
||||||
source: http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt
|
source: http://www.perlfoundation.org/attachment/legal/artistic-2_0.txt
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: BSD (3-Clause) License
|
title: BSD (3-Clause) License
|
||||||
category: BSD
|
category: BSD
|
||||||
slug: bsd-3
|
tab-slug: bsd-3
|
||||||
hide-from-license-list: true
|
hide-from-license-list: true
|
||||||
permalink: /licenses/bsd-3-clause/
|
permalink: /licenses/bsd-3-clause/
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: BSD 2-Clause license
|
title: BSD 2-Clause license
|
||||||
category: BSD
|
category: BSD
|
||||||
slug: bsd
|
tab-slug: bsd
|
||||||
hide-from-license-list: false
|
hide-from-license-list: false
|
||||||
permalink: /licenses/bsd/
|
permalink: /licenses/bsd/
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: CC0 1.0 Universal
|
title: CC0 1.0 Universal
|
||||||
category: Public Domain Dedication
|
category: Public Domain Dedication
|
||||||
slug: cc0
|
tab-slug: cc0
|
||||||
permalink: /licenses/cc0/
|
permalink: /licenses/cc0/
|
||||||
class: license-types
|
class: license-types
|
||||||
hide-from-license-list: true
|
hide-from-license-list: true
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: Eclipse Public License v1.0
|
title: Eclipse Public License v1.0
|
||||||
category: Eclipse
|
category: Eclipse
|
||||||
slug: eclipse
|
|
||||||
permalink: /licenses/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.
|
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,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: GPL v2
|
title: GPL v2
|
||||||
category: GPL
|
category: GPL
|
||||||
slug: gpl-v2
|
tab-slug: gpl-v2
|
||||||
hide-from-license-list: false
|
hide-from-license-list: false
|
||||||
layout: license
|
layout: license
|
||||||
permalink: /licenses/gpl-v2/
|
permalink: /licenses/gpl-v2/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: GPL v3
|
title: GPL v3
|
||||||
category: GPL
|
category: GPL
|
||||||
slug: gpl-v3
|
tab-slug: gpl-v3
|
||||||
hide-from-license-list: true
|
hide-from-license-list: true
|
||||||
layout: license
|
layout: license
|
||||||
permalink: /licenses/gpl-v3/
|
permalink: /licenses/gpl-v3/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: LGPL v2.1
|
title: LGPL v2.1
|
||||||
category: LGPL
|
category: LGPL
|
||||||
slug: lgpl-v2.1
|
tab-slug: lgpl-v2.1
|
||||||
permalink: /licenses/lgpl-v2.1/
|
permalink: /licenses/lgpl-v2.1/
|
||||||
source: http://www.gnu.org/licenses/lgpl-2.1.txt
|
source: http://www.gnu.org/licenses/lgpl-2.1.txt
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: LGPL v3
|
title: LGPL v3
|
||||||
category: LGPL
|
category: LGPL
|
||||||
slug: lgpl-v3
|
tab-slug: lgpl-v3
|
||||||
hide-from-license-list: true
|
hide-from-license-list: true
|
||||||
permalink: /licenses/lgpl-v3/
|
permalink: /licenses/lgpl-v3/
|
||||||
source: http://www.gnu.org/licenses/lgpl-3.0.txt
|
source: http://www.gnu.org/licenses/lgpl-3.0.txt
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: MIT License
|
title: MIT License
|
||||||
category: mit
|
category: mit
|
||||||
slug: mit
|
|
||||||
permalink: /licenses/mit/
|
permalink: /licenses/mit/
|
||||||
source: http://opensource.org/licenses/MIT
|
source: http://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: Mozilla Public License Version 2.0
|
title: Mozilla Public License Version 2.0
|
||||||
category: Mozilla
|
category: Mozilla
|
||||||
slug: mozilla
|
|
||||||
permalink: /licenses/mozilla/
|
permalink: /licenses/mozilla/
|
||||||
source: http://www.mozilla.org/MPL/2.0/
|
source: http://www.mozilla.org/MPL/2.0/
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
layout: license
|
layout: license
|
||||||
permalink: /licenses/no-license/
|
permalink: /licenses/no-license/
|
||||||
category: No License
|
category: No License
|
||||||
slug: no-license
|
|
||||||
class: license-types
|
class: license-types
|
||||||
title: No License
|
title: No License
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
layout: license
|
layout: license
|
||||||
title: The Unlicense
|
title: The Unlicense
|
||||||
category: Public Domain Dedication
|
category: Public Domain Dedication
|
||||||
slug: unlicense
|
tab-slug: unlicense
|
||||||
permalink: /licenses/unlicense/
|
permalink: /licenses/unlicense/
|
||||||
class: license-types
|
class: license-types
|
||||||
filename: UNLICENSE
|
filename: UNLICENSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user