mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 21:12:23 +01:00
Add links for submitting issues or features.
This commit is contained in:
committed by
Daan Sprenkels
parent
416ae40763
commit
993ba2acca
6
marietje/marietje/context_processors.py
Normal file
6
marietje/marietje/context_processors.py
Normal 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}
|
||||
@ -66,6 +66,7 @@ TEMPLATES = [
|
||||
'django.template.context_processors.request',
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
'marietje.context_processors.global_settings',
|
||||
],
|
||||
},
|
||||
},
|
||||
@ -79,8 +80,12 @@ WSGI_APPLICATION = 'marietje.wsgi.application'
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'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_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'
|
||||
|
||||
@ -17,3 +17,7 @@
|
||||
#queue-time-header {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<title>Marietje 4.0 - {% block title %}{% endblock title %}</title>
|
||||
<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/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/bootstrap.min.js" %}"></script>
|
||||
</head>
|
||||
@ -69,5 +69,10 @@
|
||||
{% endif %}
|
||||
{% block content %}{% endblock content %}
|
||||
</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>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user