replace sekizai use by authentic templatetags (#7534)

This commit is contained in:
Serghei Mihai 2015-06-11 18:25:49 +02:00
parent c7f983451a
commit 2a8f2a3162
8 changed files with 16 additions and 24 deletions

3
debian/control vendored
View File

@ -12,7 +12,6 @@ Architecture: all
Depends: ${misc:Depends}, Depends: ${misc:Depends},
python-authentic2 (>= 2.1.2), python-authentic2 (>= 2.1.2),
python-requests, python-requests,
python-requests-oauthlib, python-requests-oauthlib
python-django-sekizai
Description: Kerberos authentication frontend for Authentic2 Description: Kerberos authentication frontend for Authentic2

View File

@ -116,8 +116,7 @@ setup(name='authentic2-auth-msp',
install_requires=[ install_requires=[
'authentic2', 'authentic2',
'requests', 'requests',
'requests-oauthlib', 'requests-oauthlib'
'django-sekizai',
], ],
entry_points={ entry_points={
'authentic2.plugin': [ 'authentic2.plugin': [

View File

@ -6,7 +6,7 @@ class Plugin(object):
return urls.urlpatterns return urls.urlpatterns
def get_apps(self): def get_apps(self):
return [__name__, 'sekizai'] return [__name__]
def get_authentication_backends(self): def get_authentication_backends(self):
return ['authentic2_auth_msp.backends.MspBackend'] return ['authentic2_auth_msp.backends.MspBackend']

View File

@ -1,15 +1,14 @@
{% extends "base.html"%} {% extends "base.html"%}
{% load sekizai_tags %} {% load staticfiles authentic2 %}
{% load staticfiles %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/msp.css' %}"></link>{% endaddtoblock %}
{% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/domready.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/getElementsByClassName-1.0.1.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js-endpage" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/oauth.js" %}"></script>{% endaddtoblock %}
{% block content %} {% block content %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/msp.css' %}"></link>{% endaddtoblock %}
{% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/domready.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/getElementsByClassName-1.0.1.js" %}"></script>{% endaddtoblock %}
{% addtoblock "js-endpage" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/oauth.js" %}"></script>{% endaddtoblock %}
<div id="msp-confirm-unlink"> <div id="msp-confirm-unlink">
<div class="msp"> <div class="msp">
<div class="cadre"> <div class="cadre">

View File

@ -1,5 +1,4 @@
{% load staticfiles %} {% load staticfiles authentic2 %}
{% load sekizai_tags %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %} {% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %}
{% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/domready.js" %}"></script>{% endaddtoblock %} {% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/domready.js" %}"></script>{% endaddtoblock %}

View File

@ -1,12 +1,11 @@
{% extends "base.html"%} {% extends "base.html"%}
{% load sekizai_tags %} {% load staticfiles authentic2 %}
{% load staticfiles %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/msp.css' %}"></link>{% endaddtoblock %}
{% block content %} {% block content %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/msp.css' %}"></link>{% endaddtoblock %}
<div id="msp-link-management"> <div id="msp-link-management">
<div class="msp"> <div class="msp">
<div class="cadre"> <div class="cadre">

View File

@ -1,6 +1,5 @@
{% load i18n %} {% load i18n %}
{% load sekizai_tags %} {% load staticfiles authentic2 %}
{% load staticfiles %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %} {% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %}
{% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/domready.js" %}"></script>{% endaddtoblock %} {% addtoblock "js" %}<script type="text/javascript" src="{% static "authentic2_auth_msp/js/domready.js" %}"></script>{% endaddtoblock %}

View File

@ -1,11 +1,9 @@
{% extends "base.html"%} {% extends "base.html"%}
{% load sekizai_tags %} {% load staticfiles authentic2 %}
{% load staticfiles %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %}
{% block content %} {% block content %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'authentic2_auth_msp/css/screen.msp.css' %}"></link>{% endaddtoblock %}
<div class="msp"> <div class="msp">
<div class="cadre"> <div class="cadre">
<div class="bordure"> <div class="bordure">