js: Remove javascript license link from footer

The link is hidden but not removed. librejs will still parse it. Ideally we
would want to do this from <link data-jslicense='1' href=''> but that seems to
cause problems for librejs.

Librejs users can still find out about the license of Javscript script file
using Librejs menu.

We already have a link to FreedomBox source code in the home page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Sunil Mohan Adapa 2019-01-28 21:50:36 -08:00 committed by Joseph Nuthalapati
parent 68777a5cfe
commit 72c1c7349f
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35
4 changed files with 11 additions and 23 deletions

View File

@ -134,6 +134,12 @@
</div>
</div>
</div>
<div class="hidden">
<a href="{% static 'jslicense.html' %}" data-jslicense="1">
{% trans "JavaScript license information" %}</a>
</div>
</body>
</html>

View File

@ -246,14 +246,13 @@
<footer>
<div class="container">
{% block footer_block %}
<div class="license-info">
<p>
<a href="{% static 'jslicense.html' %}" data-jslicense="1">
{% trans "JavaScript license information" %}</a>
</p>
</div>
{% endblock %}
</div>
<div class="hidden">
<a href="{% static 'jslicense.html' %}" data-jslicense="1">
{% trans "JavaScript license information" %}</a>
</div>
</footer><!--/.footer-->
</div><!--/#container-->
{% block app_js %}<!-- placeholder for app-specific js files -->{% endblock %}

View File

@ -170,11 +170,4 @@
</div>
</div>
<div class="license-info">
<p>
<a href="{% static 'jslicense.html' %}" data-jslicense="1">
{% trans "JavaScript license information" %}</a>
</p>
</div>
{% endblock %}

View File

@ -161,12 +161,6 @@ body {
/* Sticky footer styles
-------------------------------------------------- */
footer .license-info {
opacity: 0.5;
margin-right: 20px;
text-align: right;
}
.footer-logo {
width: 140px;
}
@ -211,10 +205,6 @@ footer {
padding-top: 150px;
}
footer license-info p {
margin: 20px 0;
}
.shortcut-label {
min-height: 50px;
}