mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +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-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: "|" %}
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Affero GPL
|
||||
category: GPL
|
||||
slug: agpl
|
||||
tab-slug: agpl
|
||||
hide-from-license-list: true
|
||||
layout: license
|
||||
permalink: /licenses/agpl/
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
title: Apache v2 License
|
||||
category: Apache
|
||||
slug: apache
|
||||
layout: license
|
||||
permalink: /licenses/apache/
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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/
|
||||
|
||||
|
@ -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/
|
||||
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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/
|
||||
|
@ -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/
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -2,7 +2,6 @@
|
||||
layout: license
|
||||
title: MIT License
|
||||
category: mit
|
||||
slug: mit
|
||||
permalink: /licenses/mit/
|
||||
source: http://opensource.org/licenses/MIT
|
||||
|
||||
|
@ -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/
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
layout: license
|
||||
permalink: /licenses/no-license/
|
||||
category: No License
|
||||
slug: no-license
|
||||
class: license-types
|
||||
title: No License
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user