]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/templates/phyll/base.html
add mini-live edit, for quick fixes
[chloro.git] / chloro / phyll / templates / phyll / base.html
index 466fb4b77cff1611d4214e5becbfd16d949eb67e..4f231e192b9426903f0417c08dc4c4d02077e561 100644 (file)
@@ -1,13 +1,35 @@
-<!DOCTYPE html>
+{% load gadjo i18n %}<!DOCTYPE html>
 <html>
   <head>
     <meta charset="utf-8"/> <!-- đŸŒ± -->
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>Coin web de FrĂ©dĂ©ric PĂ©ters</title>
+    <title>{% block page-title %}Coin web de FrĂ©dĂ©ric PĂ©ters{% endblock %}</title>
     <link rel="stylesheet" type="text/css" href="/static/css/style.css">
+    <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed/atom" />
+    {% if request.user.is_staff %}
+    <script src="{% xstatic 'jquery' 'jquery.min.js' %}"></script>
+    <script src="/static/js/chloro.js"></script>
+    {% endif %}
+    {% block bottom-head %}
+    {% endblock %}
   </head>
   <body>
-  {% block body %}
-  {% endblock %}
+    <header>
+      <h1><a href="/">Coin web de FrĂ©dĂ©ric PĂ©ters</a></h1>
+    </header>
+    <main class="{% block content-class %}{% endblock %}">
+      {% block body %}
+      {% endblock %}
+    </main>
+    <footer>
+      <p>Contact : <a href="mailto:fpeters@0d.be">fpeters@0d.be</a></p>
+    </footer>
+  {% if request.user.is_staff %}
+  <div class="actions">
+    <a href="/new-note/">{% trans "New Note" %}</a>
+    {% block bottom-actions %}
+    {% endblock %}
+  </div>
+  {% endif %}
   </body>
 </html>