From 3ba5f81b7bc99d7ff954aa5b76aca93c9e157e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 4 Aug 2013 18:07:41 +0200 Subject: twig implementation --- tpl/css/style.css | 4 ---- tpl/view.twig | 65 ++++++++++++++++++++----------------------------------- 2 files changed, 24 insertions(+), 45 deletions(-) (limited to 'tpl') diff --git a/tpl/css/style.css b/tpl/css/style.css index 69e37497..d856a354 100644 --- a/tpl/css/style.css +++ b/tpl/css/style.css @@ -203,8 +203,4 @@ body.article { margin-left: 0; margin-right: 0; } -} - -.messages { - } \ No newline at end of file diff --git a/tpl/view.twig b/tpl/view.twig index e68cd1a1..d2ec2071 100644 --- a/tpl/view.twig +++ b/tpl/view.twig @@ -1,58 +1,41 @@ - - - - - - - - - - - {$title} - - - - - - - - - - - - -
+{% extends "layout.twig" %} +{% block title %}{% trans "home" %}{% endblock %} + +{% block content %} +
- +
-

{$title}

- +

{{ entry.title|e }}

+
- {include="messages"}
- {$content} + {{ content|striptags }}
- +
- - + +
- this article appears wrong? create an issue or contact us by mail + {% trans "this article appears wrong?" %} {% trans "create an issue" %} {% trans "or" %} {% trans "contact us by mail" %}
- +
+{% endblock %} - {include="js"} - {include="footer"} \ No newline at end of file +{% block js %} + + +{% endblock %} \ No newline at end of file -- cgit v1.2.3