custom appearance (#3979)

This commit is contained in:
Frédéric Péters 2013-11-20 11:06:41 +01:00 committed by Frédéric Péters
parent 6ed753e775
commit 03b8214d0a
6 changed files with 97 additions and 0 deletions

View File

@ -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/

View File

@ -5,3 +5,4 @@
/usr/lib/amue-authentic2/*
/etc/supervisor/conf.d/*
/etc/nginx/sites-available/*
/var/lib/amue-authentic2/*

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -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;
}

52
templates/base.html Normal file
View File

@ -0,0 +1,52 @@
{% load i18n %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="{{ STATIC_URL }}authentic2/css/style.css" />
<link rel="stylesheet" href="{{ STATIC_URL }}jquery/css/jquery-ui.custom.css" />
<link rel="stylesheet" href="{{ STATIC_URL }}ulx/css/ulx.css" />
<link rel="stylesheet" href="{{ STATIC_URL }}amue/style.css" />
<title>{% block title %}User test{% endblock %}</title>
{{ openid_meta }}
{% block extra_scripts %}
{% endblock %}
</head>
<body {% block bodyargs %}{% endblock %} >
<div id="wrap">
<a href="/"><div id="header">
{% block header %}
<h1><img height="100" src="{{ STATIC_URL }}amue/img_logo_web_13.png" alt="AMUE"/></h1>
{% endblock %}
</div></a>
<div id="content">
{% if request.user.is_authenticated %}
<div id="user">
<p>
{% blocktrans with request.user.get_full_name as username %}Hello {{ username }}.{% endblocktrans %}
<a id="logout" href="{% url 'auth_logout' %}">{% trans "Logout" %}</a></p>
</div>
{% endif %}
{% block messages %}
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}
{% block content %}{% endblock %}
</div>
<div id="footer">
{% block footer %}
Copyright &copy; 2013 Entr'ouvert
{% endblock %}
</div>
</div>
</body>
</html>