From 8cbb2a88024969f7efd90f8053f3b0805fa2f8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 08:25:11 +0200 Subject: twig implementation --- tpl/home.twig | 44 ++++++++++++++++++++++++++++++++------------ tpl/layout.twig | 42 +++++------------------------------------- tpl/login.twig | 10 ++++++++++ 3 files changed, 47 insertions(+), 49 deletions(-) (limited to 'tpl') diff --git a/tpl/home.twig b/tpl/home.twig index 8b602a25..7b5b88a2 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -1,21 +1,41 @@ - -
-

logo pochepoche

-
-
+{% extends "layout.twig" %} + +{% block title %}Home{% endblock %} {% block menu %} {% endblock %} {% block precontent %} {% endblock %} - {include="messages"} \ No newline at end of file +{% block content %} +
+ {% for entry in entries %} +
+ +

+ {{ entry.title|e }} +

+
+
    +
  • +
  • +
  • +
  • +
  • +
+
+
{{ entry.url|e }}
+
+
+ {% endfor %} +
+{% endblock %} \ No newline at end of file diff --git a/tpl/layout.twig b/tpl/layout.twig index c5f52bbd..9dc83efe 100644 --- a/tpl/layout.twig +++ b/tpl/layout.twig @@ -9,50 +9,18 @@ {% block title %}{% endblock %} - poche - - - - - - - - - - - + {% include '_head.twig' %} + {% include '_bookmarklet.twig' %} -
-

logo pochepoche

-
+ {% include '_top.twig' %}
{% block menu %}{% endblock %} {% block precontent %}{% endblock %} + {% block messages %}{% endblock %} {% block content %}{% endblock %} {% block js %}{% endblock %}
- - + {% include '_footer.twig' %} \ No newline at end of file diff --git a/tpl/login.twig b/tpl/login.twig index 390718b6..c95a5f02 100644 --- a/tpl/login.twig +++ b/tpl/login.twig @@ -1,5 +1,15 @@ {% extends "layout.twig" %} + {% block title %}Login{% endblock %} +{% block messages %} +
+
    + {% for error in errors %} +
  • {{ error.value|e }}
  • + {% endfor %} +
+
+{% endblock %} {% block content %}
-- cgit v1.2.3