Remove the agent homepage (fixes #7678)

This commit is contained in:
Benjamin Dauvergne 2015-06-25 10:14:25 +02:00
parent f617f2f298
commit 269a730660
3 changed files with 0 additions and 36 deletions

View File

@ -1,30 +0,0 @@
{% extends "authentic2/homepage.html" %}
{% load i18n %}
{% block title %}
{% trans "Authentic" %}
{% endblock %}
{% block appbar %}
{{ block.super }}
<a href="{% url "account_management" %}">{% trans "Your account" %}</a>
{% endblock %}
{% block content %}
<h2 id="services-header">Services</h2>
<ul>
{% for name, url, slug, needed_authent in service_links %}
<li>
{% if needed_authent %}
<a id="service-link-{{ slug }}">
{{ name }}
</a> (niveau d'authentification insuffisant: {{ needed_authent }})
{% else %}
<a id="service-link-{{ slug }}" href="{{ url }}">
{{ name }}
</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -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<collectivity_pk>\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),
)

View File

@ -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')