add authentic2 theme

This required duplicating the base theme.html as theme_sekizai.html, which is
quite a sad thing.
This commit is contained in:
Frédéric Péters 2015-03-05 12:07:39 +01:00
parent c670af344c
commit 2e478fd651
4 changed files with 112 additions and 0 deletions

View File

View File

@ -0,0 +1,37 @@
{% extends "base.html" %}
{% load i18n %}
{% load staticfiles %}
{% block bodyargs %}
{% endblock %}
{% block messages %}
{% endblock %}
{% block menu %}
{% endblock %}
{% block content %}
<div id="welcome">
{% if messages %}
<div id="messages" class="messages-login">
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
<div>
{% for name, content in methods %}
{{ content|safe }}
{% endfor %}
</div>
<br class="clear"/>
{% endblock %}

6
templates/base.html Normal file
View File

@ -0,0 +1,6 @@
{% extends "theme_sekizai.html" %}
{% load i18n static sekizai_tags %}
{% block extra_css %}
<link rel="stylesheet" type="text/css" href="{% static "authentic.style.css" %}" />
{% endblock %}

View File

@ -0,0 +1,69 @@
<!DOCTYPE html>
{% load i18n static sekizai_tags %}
<html>
<head>
<meta charset="UTF-8"><!---->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/themes/auquotidien/favicon.png" />
<title>Compte Citoyen {% block title %}{% endblock %}</title>
<script type="text/javascript" src="/qo/js/jquery.js"></script>
<link rel="shortcut icon" href="{% static "fabicon.ico" %}" />
<link rel="stylesheet" type="text/css" href="{% static "style.css" %}" >
{% block extra_css %}
{% endblock %}
{% render_block "css" %}
{% block extra_scripts %}
{% endblock %}
{% render_block "js" %}
</head>
<body {% block bodyargs %}{% endblock %}>
<div id="page">
<div id="header">
<div id="top">
<h1 id="logo"><a href="/">{{ site_title }}</a></h1>
<div id="toplinks">
{% if user.is_authenticated %}
<span class="logged-in">
<a class="logout" href="{% url 'auth_logout' %}">D&eacute;connexion</a>
</span>
{% endif %}
</div>
</div>
</div> <!-- header -->
<div id="main-content-wrapper">
<div id="nav">
{% block menu %}
<ul>
<li class="link-accueil"><a href="http://combo.127.0.0.2.xip.io:8000">Accueil</a></li>
<li class="link-demarches"><a href="http://auquo-hobo/">Démarches</a></li>
<li class="link-profil"><a href="http://authentic4.127.0.0.1.xip.io:8002/accounts/">Profil</a></li>
<li class="link-aide"><a href="">Aide</a></li>
</ul>
{% endblock %}
</div>
<div id="main-content">
<div id="content" class="large">
{% block content %}
{% endblock %}
</div> <!-- #content -->
<br class="clear"/>
</div> <!-- #main-content -->
</div> <!-- #main-content-wrapper -->
<div id="footer-wrapper">
<div id="footer">
<p id="legal">Copyright © 2005-2015 Entr'ouvert</p>
</div>
</div>
</div>
</body>
</html>