diff --git a/Makefile b/Makefile index 3c9dbba..570fa6f 100644 --- a/Makefile +++ b/Makefile @@ -29,3 +29,6 @@ install: # nginx install -d $(DESTDIR)/etc/nginx/sites-available/ install -T -m 644 idp.amue.fr.nginx $(DESTDIR)/etc/nginx/sites-available/idp.amue.fr + # custom template and static files + install -d $(DESTDIR)/var/lib/amue-authentic2/ + cp -R templates extra-static $(DESTDIR)/var/lib/amue-authentic2/ diff --git a/debian/amue-authentic2.install b/debian/amue-authentic2.install index 95dc5a3..fed8c65 100644 --- a/debian/amue-authentic2.install +++ b/debian/amue-authentic2.install @@ -5,3 +5,4 @@ /usr/lib/amue-authentic2/* /etc/supervisor/conf.d/* /etc/nginx/sites-available/* +/var/lib/amue-authentic2/* diff --git a/extra-static/amue/bg_header.png b/extra-static/amue/bg_header.png new file mode 100644 index 0000000..5e3433d Binary files /dev/null and b/extra-static/amue/bg_header.png differ diff --git a/extra-static/amue/img_logo_web_13.png b/extra-static/amue/img_logo_web_13.png new file mode 100644 index 0000000..4170fd2 Binary files /dev/null and b/extra-static/amue/img_logo_web_13.png differ diff --git a/extra-static/amue/style.css b/extra-static/amue/style.css new file mode 100644 index 0000000..1b95207 --- /dev/null +++ b/extra-static/amue/style.css @@ -0,0 +1,41 @@ +div#wrap { + padding-left: 0; + padding-right: 0; +} + +#header { + background: white; + width: 100%; + background: white url(bg_header.png) repeat-x bottom left; + padding-left: 0; + -webkit-border-radius: 0; + -moz-border-radius: 0; + border-radius: 0; + height: 108px; +} + +#header h1 { + margin: 0; + padding-top: 0; + padding-left: 20px; +} + +div#tabs { + border: none; +} +ul.ui-tabs-nav { + display: none; +} + +input[type=submit] { + padding: 5px 10px; + background-color: #4f8cc8; + -webkit-transition: all .2s ease-in-out; + -moz-transition: all .2s ease-in-out; + transition: all .2s ease-in-out; +} + +input[type=submit]:hover { + background-color: #0a73b8; +} + diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..eb028fe --- /dev/null +++ b/templates/base.html @@ -0,0 +1,52 @@ +{% load i18n %} + + + + + + + + {% block title %}User test{% endblock %} + {{ openid_meta }} + {% block extra_scripts %} + {% endblock %} + + + +
+ + +
+ {% if request.user.is_authenticated %} +
+

+ {% blocktrans with request.user.get_full_name as username %}Hello {{ username }}.{% endblocktrans %} + {% trans "Logout" %}

+
+ {% endif %} + {% block messages %} + {% if messages %} + + {% endif %} + {% endblock %} + {% block content %}{% endblock %} +
+ + +
+ + +