]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/templates/phyll/base.html
add basic views to create/edit/delete notes
[chloro.git] / chloro / phyll / templates / phyll / base.html
index 466fb4b77cff1611d4214e5becbfd16d949eb67e..57969453c04308c585d885b22e47e87fab76d9dc 100644 (file)
@@ -1,13 +1,22 @@
-<!DOCTYPE html>
+{% load 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>
     <link rel="stylesheet" type="text/css" href="/static/css/style.css">
+    {% block bottom-head %}
+    {% endblock %}
   </head>
   <body>
   {% block body %}
   {% endblock %}
+  {% if request.user.is_staff %}
+  <div class="actions">
+    <a href="/new-note/">{% trans "New Note" %}</a>
+    {% block bottom-actions %}
+    {% endblock %}
+  </div>
+  {% endif %}
   </body>
 </html>