From 269a730660a29d620be57964dad993b54a9121d8 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 25 Jun 2015 10:14:25 +0200 Subject: [PATCH] Remove the agent homepage (fixes #7678) --- .../authentic2_pratic/agent_homepage.html | 30 ------------------- src/authentic2_pratic/urls.py | 1 - src/authentic2_pratic/views.py | 5 ---- 3 files changed, 36 deletions(-) delete mode 100644 src/authentic2_pratic/templates/authentic2_pratic/agent_homepage.html diff --git a/src/authentic2_pratic/templates/authentic2_pratic/agent_homepage.html b/src/authentic2_pratic/templates/authentic2_pratic/agent_homepage.html deleted file mode 100644 index 6f289b3..0000000 --- a/src/authentic2_pratic/templates/authentic2_pratic/agent_homepage.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends "authentic2/homepage.html" %} -{% load i18n %} - -{% block title %} -{% trans "Authentic" %} -{% endblock %} - -{% block appbar %} - {{ block.super }} - {% trans "Your account" %} -{% endblock %} - -{% block content %} -

Services

- -{% endblock %} diff --git a/src/authentic2_pratic/urls.py b/src/authentic2_pratic/urls.py index 9da4c3c..0ec644f 100644 --- a/src/authentic2_pratic/urls.py +++ b/src/authentic2_pratic/urls.py @@ -49,7 +49,6 @@ urlpatterns = patterns('', url('^manage/collectivities/$', views.collectivities, name='a2-pratic-collectivities'), url('^manage/collectivities/add/$', views.collectivity_add, name='a2-pratic-collectivity-add'), url('^manage/collectivities/(?P\d+)/', include(collectivity_urlpatterns)), - url('^$', views.agent_homepage, name='auth_homepage'), url('^services.json$', views.agent_homepage_jsonp, name='auth_homepage_jsonp'), url('^user_info/$', views.user_info), ) diff --git a/src/authentic2_pratic/views.py b/src/authentic2_pratic/views.py index 2ac91e9..5ccec49 100644 --- a/src/authentic2_pratic/views.py +++ b/src/authentic2_pratic/views.py @@ -403,11 +403,6 @@ def get_service_links(request): service_links.append((name, url, slug, needed_authent)) return service_links -@login_required -def agent_homepage(request): - ctx = {'service_links': get_service_links(request)} - return render(request, 'authentic2_pratic/agent_homepage.html', ctx) - def return_json(request, data): response = HttpResponse(content_type='application/json')