Commit 7eed01ce authored by Mark Stenglein's avatar Mark Stenglein

LICENSE: Add LibreJS Meta to included JavaScript

This patch adds all of the needed information to have all of the
JavaScript in the project be easily identifiable as free software by
both computer tools as well as humans. This is done by the following:

- Original sources are added and linked for all minified libraries.

- A data tag is added to the "About" link in the navbar menu which
alerts tools such as LibreJS to look on that page for the table of
includes mapped to their respective licenses.

- A table is added to the "About" page which includes links to each
included file, links to their respective licenses, and then a link to a
decompressed version of each.
Signed-off-by: Mark Stenglein's avatarMark Stenglein <mark@stengle.in>
parent e5a79799
Pipeline #1322 passed with stages
in 2 minutes and 53 seconds
......@@ -118,4 +118,54 @@ SRCT Go &bull; About
</div>
</div>
<!-- define the LibreJS License Table -->
<div class="row">
<div class="col-md-12">
<h4><i class="fa">JavaScript License Information</i></h4>
<legend></legend>
<table id="jslicense-labels1">
<tr>
<td><a href="/static/js/jquery.min.js">jquery.min.js</a></td>
<td><a href="http://jquery.org/license">Expat</a></td>
<td><a href="http://code.jquery.com/jquery-2.1.1.js">jquery-2.1.1.js</a></td>
</tr>
<tr>
<td><a href="/static/js/bootstrap.min.js">bootstrap.min.js</a></td>
<td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0</a></td>
<td><a href="/static/js/bootstrap.js">bootstrap.js</a></td>
</tr>
<tr>
<td><a href="/static/js/clipboard.min.js">clipboard.min.js</a></td>
<td><a href="https://zenorocha.mit-license.org/">Expat</a></td>
<td><a href="/static/js/clipboard.js">clipboard.js</a></td>
</tr>
<tr>
<td><a href="/static/js/copy.js">copy.js</a></td>
<td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0</a></td>
<td><a href="/static/js/copy.js">copy.js</a></td>
</tr>
<tr>
<td><a href="/static/js/new_link.js">new_link.js</a></td>
<td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0</a></td>
<td><a href="/static/js/new_link.js">new_link.js</a></td>
</tr>
<tr>
<td><a href="/static/js/tab.js">tab.js</a></td>
<td><a href="https://github.com/twbs/bootstrap/blob/master/LICENSE">Expat</a></td>
<td><a href="/static/js/tab.js">tab.js</a></td>
</tr>
<tr>
<td><a href="/static/js/tooltip.js">tooltip.js</a></td>
<td><a href="https://github.com/twbs/bootstrap/blob/master/LICENSE">Expat</a></td>
<td><a href="/static/js/tooltip.js">tooltip.js</a></td>
</tr>
<tr>
<td><a href="/static/js/useradmin.js">useradmin.js</a></td>
<td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0</a></td>
<td><a href="/static/js/useradmin.js">useradmin.js</a></td>
</tr>
</table>
</div>
</div>
{% endblock %}
......@@ -22,7 +22,7 @@
<div class="navbar-collapse collapse navbar-responsive-collapse">
<!-- The left side -->
<ul class="nav navbar-nav navbar-left">
<li><a href="{% url 'about' %}">About</a></li>
<li><a href="{% url 'about' %}" data-jslicense="1">About</a></li>
<!-- only show if the current user is authenticated -->
{% if user.is_authenticated %}
<!-- only if they are an approved user -->
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment