Self hosted FLOSS fitness/workout, nutrition and weight tracker
Remove page with source code
Roland Geider5e88fcb3c9a4
diff --git a/wger/core/templates/navigation.html b/wger/core/templates/navigation.htmlindex 74a6599ab..56b9c3104 100644--- a/wger/core/templates/navigation.html+++ b/wger/core/templates/navigation.html@@ -128,11 +128,10 @@<li><a href="{% url 'software:issues' %}">{% trans "Problems and wishes" %} </a></li><li><a href="{% url 'software:tos' %}">{% trans "Terms of service" %} </a></li><li class="divider"></li>- <li><a href="{% url 'software:code' %}">{% trans "Get the code" %} </a></li>+ <li><a href="https://github.com/rolandgeider/wger">{% trans "Get the code" %} (Github)</a></li><li><a href="{% url 'software:api' %}">{% trans "REST API" %} </a></li><li><a href="{% url 'software:license' %}">{% trans "License" %} </a></li><li><a href="{% url 'software:changelog' %}">{% trans "Changelog" %} </a></li>- <li><a href="https://github.com/rolandgeider/wger">{% trans "Github" %} </a></li><li><a href="https://www.transifex.com/rge/wger-workout-manager/">{% trans "Translate with Transifex" %} </a></li></ul></li>diff --git a/wger/software/templates/code.html b/wger/software/templates/code.htmldeleted file mode 100644index 1471303b8..000000000--- a/wger/software/templates/code.html+++ /dev/null@@ -1,47 +0,0 @@-{% extends "base.html" %}-{% load i18n %}-{% load staticfiles %}-{% load wger_extras %}---{% block title %}{% trans "Get the code" %}{% endblock %}--{% block content %}---<p>Click here to download a pip-installable package of the current stable-version. For installation instructions consult the documentation.</p>--<div style="text-align:center">- <a class="btn btn-primary btn-lg" href="https://github.com/rolandgeider/wger/releases/latest">- <span class="glyphicon glyphicon-save"></span>- download stable version- <br>- <small>tar.gz | 6MB</small>- </a>-</div>---<p style="margin-top: 3em;">You can also check out the current source code-repository, which is hosted at github. Do this if you want to develop or just-install the current (unreleased) version:</p>-<div style="text-align:center">- <a class="btn btn-primary" href="https://github.com/rolandgeider/wger">- <span class="glyphicon glyphicon-globe"></span>- code repository in github- </a>-</div>---{% endblock %}---{% block sidebar %}-<h4>Further documentation</h4>--<p>There are more detailed instructions, other deployment options as well as an-administration guide available at <a href="https://wger.readthedocs.io">https://wger.readthedocs.io</a>-or locally in your code repository in the docs folder (<code>make html</code>-to compile, then open _build/index.html).</p>--{% endblock %}diff --git a/wger/software/urls.py b/wger/software/urls.pyindex 2e7d36ece..3f06b8338 100644--- a/wger/software/urls.py+++ b/wger/software/urls.py@@ -15,7 +15,7 @@# You should have received a copy of the GNU Affero General Public Licensefrom django.conf.urls import url-from django.views.generic import TemplateView+from django.views.generic import TemplateView, RedirectViewfrom wger.software import views@@ -41,7 +41,7 @@ urlpatterns = [name='license'),url(r'^code$',- TemplateView.as_view(template_name="code.html"),+ RedirectView.as_view(permanent=True, url='https://github.com/rolandgeider/wger'),name='code'),url(r'^contribute$',