LICENSE: Make things LibreJS friendly

This commit does a few things in order to make #srctweb work correctly
with LibreJS users.

- Adds a librejs page which includes a table of the external sources we
  used, their licenses, as well as a link to the uncompressed source
  files.

- Adds the uncompressed source of Bootstrap.js v3.0.3

- Adds a link in the footer to the LibreJS page so that the addon can
  find the license table from any page.
Signed-off-by: Mark Stenglein's avatarMark Stenglein <mark@stengle.in>
parent f94fffd1
This diff is collapsed.
......@@ -8,7 +8,7 @@
<link href="/static/css/style.css" rel="stylesheet">
<link rel="icon" href="/static/img/favicon.ico">
<script>
/*
/*
@licstart The following is the entire license notice for the
JavaScript code in this page.
......
......@@ -30,7 +30,8 @@
<a href="https://wiki.srct.gmu.edu/">Wiki</a> &middot;
<a href="{{ url_for('termsOfService') }}">Terms</a> &middot;
<a href="{{ url_for('privacyPolicy') }}">Privacy</a> &middot;
<a href="{{ url_for('contact') }}">Contact</a>
<a href="{{ url_for('contact') }}">Contact</a> &middot;
<a href="{{ url_for('librejs') }}" data-jslicense="1">JavaScript License Info</a>
</div>
</div>
</small>
......
{% extends "layouts/base.html" %}
{% block title %}
SRCT | JavaScript License Information
{% endblock %}
{% block pagetitle %}
JavaScript License Information
{% endblock %}
{% block description %}
Meta Information for GNU LibreJS Users
{% endblock %}
{% block content %}
<table id="jslicense-labels1">
<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>
</table>
{% endblock %}
......@@ -13,6 +13,11 @@ def calendar():
renderHead = True,
)
@website.route('/librejs/')
def librejs():
return render_template("librejs.html",
renderHead = True,
)
@website.route('/contact/')
def contact():
return render_template("contact.html",
......@@ -40,7 +45,7 @@ def projects():
@website.route('/opt-out/')
def optOut():
return render_template("privacy_opt_out.html",
)
### DOCUMENTS ###
......
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