Commit 12300ef2 authored by David Haynes's avatar David Haynes 🙆

Merge branch '148-librejs' into '2.2-dev'

LICENSE: Add LibreJS Meta to included JavaScript

See merge request !84
parents e5a79799 f379906e
Pipeline #1333 passed with stages
in 3 minutes and 2 seconds
<!-- include the base html template -->
{% extends 'layouts/base.html' %}
<!-- Tell Django to load static files -->
{% load staticfiles %}
<!-- define the page title block -->
{% block title %}
SRCT Go &bull; About
......@@ -118,4 +121,61 @@ SRCT Go &bull; About
</div>
</div>
<!-- define the LibreJS License Table -->
<div class="row">
<div class="col-md-12">
<h4>JavaScript License Information</h4>
<legend></legend>
<table class="table" id="jslicense-labels1">
<thead>
<tr>
<th>Source File</th>
<th>License</th>
<th>Uncompressed Source</th>
</tr>
</thead>
<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.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