Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add Creative commons icons and license info to some pages
Roland Geider6447e4cb9ffd
diff --git a/exercises/templates/view.html b/exercises/templates/view.htmlindex d092c5318..596a85dc6 100644--- a/exercises/templates/view.html+++ b/exercises/templates/view.html@@ -182,4 +182,16 @@ weight_log_chart({{json|safe}}, "{{svg_uuid}}", "{{reps}}")</a></p>{% endif %}++<h3>{% trans "Free license" %}</h3>+<p>+<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.{{language.short_name}}">+ <img src="{% static 'images/cc-by-sa-88x31.png' %}"+ width="88"+ height="31"+ alt="{% trans 'CC-BY-SA' %}"+ title="{% trans 'CC-BY-SA' %}">+ {% blocktrans %}This content is licenced under a Creative commons share-alike,+(CC-BY-SA 3.0) license{% endblocktrans %}</a>+</p>{% endblock %}diff --git a/manager/static/images/cc-by-sa-88x31.png b/manager/static/images/cc-by-sa-88x31.pngnew file mode 100644index 000000000..f0a944e0bBinary files /dev/null and b/manager/static/images/cc-by-sa-88x31.png differdiff --git a/nutrition/templates/ingredient_overview.html b/nutrition/templates/ingredient_overview.htmlindex 3f1f9a4d7..db3313ec7 100644--- a/nutrition/templates/ingredient_overview.html+++ b/nutrition/templates/ingredient_overview.html@@ -1,7 +1,7 @@{% extends "base.html" %}{% load i18n %}{% load staticfiles %}-{% load manager_extras %}+{% load manager_extras %}{% block title %}{% trans "Ingredient overview" %}{% endblock %}@@ -26,7 +26,7 @@<div style="padding-top:3em;"></div>-{% pagination ingredients page_range %}+{% pagination ingredients page_range %}{% endblock %}@@ -35,7 +35,7 @@{% if perms.exercises %}<h3>{% trans "Options" %}</h3><p>- <a href="{% url ingredient-add %}">+ <a href="{% url ingredient-add %}"><img src="{% static 'images/icons/new.svg' %}"width="32"height="32"@@ -45,4 +45,16 @@</a></p>{% endif %}++<h3>{% trans "Free license" %}</h3>+<p>+<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.{{language.short_name}}">+ <img src="{% static 'images/cc-by-sa-88x31.png' %}"+ width="88"+ height="31"+ alt="{% trans 'CC-BY-SA' %}"+ title="{% trans 'CC-BY-SA' %}">+ {% blocktrans %}This content is licenced under a Creative commons share-alike,+(CC-BY-SA 3.0) license{% endblocktrans %}</a>+</p>{% endblock %}diff --git a/nutrition/templates/view_ingredient.html b/nutrition/templates/view_ingredient.htmlindex ee7851dbe..65a472355 100644--- a/nutrition/templates/view_ingredient.html+++ b/nutrition/templates/view_ingredient.html@@ -102,4 +102,16 @@</p>{% endif %}+<h3>{% trans "Free license" %}</h3>+<p>+<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.{{language.short_name}}">+ <img src="{% static 'images/cc-by-sa-88x31.png' %}"+ width="88"+ height="31"+ alt="{% trans 'CC-BY-SA' %}"+ title="{% trans 'CC-BY-SA' %}">+ {% blocktrans %}This content is licenced under a Creative commons share-alike,+(CC-BY-SA 3.0) license{% endblocktrans %}</a>+</p>+{% endblock %}diff --git a/software/templates/license.html b/software/templates/license.htmlindex bbb766992..7c1ab8ca0 100644--- a/software/templates/license.html+++ b/software/templates/license.html@@ -14,11 +14,23 @@Software (FLOSS).{% endblocktrans %}</p>+<img src="{% static 'images/agplv3-88x31.png' %}"+ width="88"+ height="31"+ alt="{% trans 'Released under the Affero GPL' %}"+ title="{% trans 'Released under the Affero GPL' %}"+ class="float-left"><p>{% blocktrans %}wger Workout Manager is released under the <strong>Affero GNUGeneral Public License (AGPL) Version 3+</strong> and can (under the conditions-of the license) be used, modifified and distributed (also with modifications)+of the license) be used, modified and distributed (also with modifications)without restrictions.{% endblocktrans %}</p>+<img src="{% static 'images/cc-by-sa-88x31.png' %}"+ width="88"+ height="31"+ alt="{% trans 'CC-BY-SA' %}"+ title="{% trans 'CC-BY-SA' %}"+ class="float-left"><p>{% blocktrans %}The data fixtures with the exercise and ingredient lists arereleased additionally under a <strong>Creative Commons Attribution Share Alike 3(CC-BY-SA)</strong> license.</a>{% endblocktrans %}</p>