Commit b35e1b64 authored by Mathieu Rodic's avatar Mathieu Rodic

[FEAT] finished re-implementing unauthenticated pages

parent 77ea05fa
*.pyc
*/__pycache__/*
...@@ -5,8 +5,7 @@ from gargantext.util.generators import paragraphs, credits ...@@ -5,8 +5,7 @@ from gargantext.util.generators import paragraphs, credits
def home(request): def home(request):
''' '''Home describes the platform.
Home describes the platform.
A video draws the narratives. A video draws the narratives.
If not logged a project test is shown. If not logged a project test is shown.
''' '''
...@@ -41,3 +40,18 @@ def about(request): ...@@ -41,3 +40,18 @@ def about(request):
})) }))
return HttpResponse(html) return HttpResponse(html)
def maintenance(request):
'''Gargantext out of service
'''
template = get_template('pages/main/maintenance.html')
user = request.user
date = datetime.datetime.now()
html = template.render(Context({\
'user': user,\
'date': date,\
}))
return HttpResponse(html)
...@@ -4,8 +4,12 @@ from . import main, auth ...@@ -4,8 +4,12 @@ from . import main, auth
urlpatterns = [ urlpatterns = [
# presentation pages
url(r'^$', main.home), url(r'^$', main.home),
url(r'^about/?$', main.about), url(r'^about/?$', main.about),
# maintenance mode
url(r'^maintenance/?$', main.maintenance),
# authentication
url(r'^auth/login/?$', auth.login), url(r'^auth/login/?$', auth.login),
url(r'^auth/logout/?$', auth.logout), url(r'^auth/logout/?$', auth.logout),
] ]
{% extends "pages/menu.html" %}
{% block css %}
{% load staticfiles %}
<link rel="stylesheet" href="{% static "css/bootstrap.css" %}">
<script src="{% static "js/jquery/jquery.min.js" %}" type="text/javascript"></script>
{% endblock %}
{% block content %}
<div class="container theme-showcase" role="main">
<div class="jumbotron">
<h1>Gargantext in maintenance</h1>
<h2>Thanks for your comprehension</h2>
</div>
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment