mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
bb8ad22c89
This link will direct anyone who wants to edit this page directly to the Github path which contains the file. CHANGELOG : 1. Added the [GitHub Metadata] (http://jekyll.github.io/github-metadata/) plugin to Gemfile and Plugins 2. Added the link to the sidebar for license pages. Github issue #433
45 lines
1.8 KiB
HTML
45 lines
1.8 KiB
HTML
<div class="sidebar">
|
|
|
|
{% github_edit_link "Help improve this page" %}
|
|
|
|
<a href="#" data-clipboard-target="#license-text" data-proofer-ignore="true" class="js-clipboard-button button">Copy license text to clipboard</a>
|
|
|
|
<div class="how-to-apply">
|
|
<h3>How to apply this license</h3>
|
|
<p>
|
|
{{ page.how | markdownify | remove: '<p>' | remove: '</p>' }}
|
|
</p>
|
|
{% if page.note %}
|
|
<p class="note">
|
|
<strong>Note: </strong> {{ page.note | markdownify | remove: '<p>' | remove: '</p>' }}
|
|
</p>
|
|
{% endif %}
|
|
{% assign xgpl = false %}
|
|
{% if page.spdx-id contains 'GPL' %}{% assign xgpl = true %}{% endif %}
|
|
<p class="note"><strong>Optional: </strong> Add <strong><code>{{ page.spdx-id }}{% if xgpl %}-or-later{% endif %}</code></strong>{% if xgpl %} (or <strong><code>{{ page.spdx-id }}-only</code></strong> to disallow future versions){% endif %} to your project's package description, if applicable (e.g., <a href="https://docs.npmjs.com/files/package.json#license">Node.js</a>, <a href="https://guides.rubygems.org/specification-reference/#license=">Ruby</a>, and <a href="https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata">Rust</a>). This will ensure the license is displayed in package directories.</p>
|
|
</div>
|
|
|
|
{% if page.source %}
|
|
<div class="source">
|
|
<a href="{{ page.source }}">
|
|
<span class="license-sprite"></span>
|
|
Source
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if page.using %}
|
|
<div class="projects-with-license">
|
|
<h3>Who's using this license?</h3>
|
|
<ul>
|
|
{% for using in page.using %}
|
|
{% for hash in using %}
|
|
<li><a href="{{ hash[1] }}" target="_blank">{{ hash[0] }}</a></li>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div> <!-- /sidebar -->
|