Add links for submitting issues or features.

This commit is contained in:
Jim Driessen
2017-09-28 23:11:58 +02:00
committed by Daan Sprenkels
parent 416ae40763
commit 993ba2acca
4 changed files with 26 additions and 3 deletions

View File

@ -0,0 +1,6 @@
from django.conf import settings
def global_settings(request):
return {'issues_url': settings.ISSUES_URL, 'contact_email': settings.CONTACT_EMAIL,
'merge_requests_url': settings.MERGE_REQUESTS_URL}

View File

@ -66,6 +66,7 @@ TEMPLATES = [
'django.template.context_processors.request', 'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth', 'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages', 'django.contrib.messages.context_processors.messages',
'marietje.context_processors.global_settings',
], ],
}, },
}, },
@ -79,8 +80,12 @@ WSGI_APPLICATION = 'marietje.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.mysql',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'NAME': 'marietje',
'USER': 'marietje',
'PASSWORD': 'UYmINKUDXIfY1qudVhbr5UhJ61kVwZPA',
'HOST': 'localhost',
'PORT': '3306',
} }
} }
@ -155,3 +160,6 @@ CONTACT_EMAIL = 'marietje@science.ru.nl'
STATS_TOP_COUNT = 50 STATS_TOP_COUNT = 50
STATS_REQUEST_IGNORE_USER_IDS = (51, 515) STATS_REQUEST_IGNORE_USER_IDS = (51, 515)
ISSUES_URL = 'https://gitlab.science.ru.nl/Marietje/MarietjeDjango/issues'
MERGE_REQUESTS_URL = 'https://gitlab.science.ru.nl/Marietje/MarietjeDjango/merge_requests'

View File

@ -17,3 +17,7 @@
#queue-time-header { #queue-time-header {
cursor: pointer; cursor: pointer;
} }
footer {
text-align: center;
}

View File

@ -7,7 +7,7 @@
<title>Marietje 4.0 - {% block title %}{% endblock title %}</title> <title>Marietje 4.0 - {% block title %}{% endblock title %}</title>
<link rel="icon" type="image/x-icon" href="{% static 'favicon.ico' %}" /> <link rel="icon" type="image/x-icon" href="{% static 'favicon.ico' %}" />
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" /> <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" />
<link rel="stylesheet" href="{% static 'css/custom.css' %}?1" /> <link rel="stylesheet" href="{% static 'css/custom.css' %}?2" />
<script type="text/javascript" src="{% static "js/jquery-3.1.1.min.js" %}"></script> <script type="text/javascript" src="{% static "js/jquery-3.1.1.min.js" %}"></script>
<script type="text/javascript" src="{% static "js/bootstrap.min.js" %}"></script> <script type="text/javascript" src="{% static "js/bootstrap.min.js" %}"></script>
</head> </head>
@ -69,5 +69,10 @@
{% endif %} {% endif %}
{% block content %}{% endblock content %} {% block content %}{% endblock content %}
</div> </div>
<footer>
Issues? Missing a feature? Report them <a href="{{ issues_url }}" target="_blank">here</a>,
submit a merge request <a href="{{ merge_requests_url }}" target="_blank">here</a>
or send an email to <a href="mailto:{{ contact_email }}">{{ contact_email }}</a>.<br>
</footer>
</body> </body>
</html> </html>