From c67e13e04baab64bcc63fd0dca46125513250c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 08:24:42 +0200 Subject: new tpl files --- tpl/home.twig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tpl/home.twig (limited to 'tpl/home.twig') diff --git a/tpl/home.twig b/tpl/home.twig new file mode 100644 index 00000000..8b602a25 --- /dev/null +++ b/tpl/home.twig @@ -0,0 +1,21 @@ + +
+

logo pochepoche

+
+
+{% block menu %} + +{% endblock %} +{% block precontent %} + +{% endblock %} + {include="messages"} \ No newline at end of file -- cgit v1.2.3 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 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) (limited to 'tpl/home.twig') 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 %}
    -
  • by date
  • -
  • by title
  • +
  • by date
  • +
  • by title
{% 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 -- cgit v1.2.3 From 2b840e0cfb63a453bea67a98541f3df9c273c5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 08:57:35 +0200 Subject: twig implementation --- tpl/home.twig | 45 +++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) (limited to 'tpl/home.twig') diff --git a/tpl/home.twig b/tpl/home.twig index 7b5b88a2..c79d4276 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -1,19 +1,18 @@ {% extends "layout.twig" %} - -{% block title %}Home{% endblock %} +{% block title %}{% trans "home" %}{% endblock %} {% block menu %} {% endblock %} {% block precontent %}
    -
  • by date
  • -
  • by title
  • +
  • {% trans "by date" %}
  • +
  • {% trans "by title" %}
{% endblock %} {% block content %} @@ -27,9 +26,9 @@
  • -
  • -
  • -
  • +
  • +
  • +
@@ -38,4 +37,26 @@
{% endfor %}
+{% endblock %} + +{% block js %} + + + + {% endblock %} \ No newline at end of file -- cgit v1.2.3 From 4f5b44bd3bd490309eb2ba7b44df4769816ba729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 19:26:54 +0200 Subject: twig implementation --- tpl/home.twig | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'tpl/home.twig') diff --git a/tpl/home.twig b/tpl/home.twig index c79d4276..5752b2cf 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -11,10 +11,19 @@ {% endblock %} {% block precontent %} {% endblock %} +{% block notices %} +
+
    + {% for notice in notices %} +
  • {{ notice.value|e }}
  • + {% endfor %} +
+
+{% endblock %} {% block content %}
{% for entry in entries %} @@ -28,7 +37,7 @@
  • -
  • +
  • @@ -40,9 +49,9 @@ {% endblock %} {% block js %} - - - + + + - - + {% endblock %} \ No newline at end of file -- cgit v1.2.3 From 6a361945eaf86a978b82bd6fb3442fe64428d9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 5 Aug 2013 21:56:32 +0200 Subject: new design, pagination & more --- tpl/home.twig | 44 +++++++++++++++++--------------------------- 1 file changed, 17 insertions(+), 27 deletions(-) (limited to 'tpl/home.twig') diff --git a/tpl/home.twig b/tpl/home.twig index 6d0f1a66..3cccbb76 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -5,39 +5,29 @@ {% endblock %} {% block precontent %}
      -
    • {% trans "by date" %}
    • -
    • {% trans "by title" %}
    • +
    • {% trans {% trans "by date" %} {% trans
    • +
    • {% trans {% trans "by title" %} {% trans
    {% endblock %} -{% block messages %} -{% include '_messages.twig' %} -{% endblock %} {% block content %} -
    - {% for entry in entries %} -
    - -

    - {{ entry.title|e }} -

    -
    -
      -
    • -
    • -
    • -
    • -
    • -
    -
    -
    {{ entry.url | e | getDomain }}
    -
    -
    - {% endfor %} + {{ page_links | raw }} + {% for entry in entries %} +
    +

    {{ entry.title|e }}

    +
      +
    • +
    • +
    • +
    • + +
    +

    {{ entry.content|striptags|slice(0, 300) }}...

    +

    {{ entry.url | e | getDomain }}

    + {% endfor %} + {{ page_links | raw }} {% endblock %} {% block js %} - - {% endblock %} \ No newline at end of file -- cgit v1.2.3 From d28a7ca30fa50845a54b0e21844b20b373b7fd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 5 Aug 2013 21:59:21 +0200 Subject: remove js --- tpl/home.twig | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tpl/home.twig') diff --git a/tpl/home.twig b/tpl/home.twig index 3cccbb76..a6da641f 100644 --- a/tpl/home.twig +++ b/tpl/home.twig @@ -26,8 +26,4 @@
    {% endfor %} {{ page_links | raw }} -{% endblock %} - -{% block js %} - {% endblock %} \ No newline at end of file -- cgit v1.2.3