From 163eae0bb15d0daa5390f434a42a8176eca186e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 23 Jan 2015 12:45:24 +0100 Subject: toggle archive / fav actions --- .../Resources/views/Entry/entries.html.twig | 20 +++++- .../Resources/views/Entry/entry.html.twig | 18 ++--- .../Resources/views/Static/about.html.twig | 84 ++++++++++++++++++++++ src/WallabagBundle/Resources/views/_menu.html.twig | 6 +- .../Resources/views/_save_form.html.twig | 10 +++ .../Resources/views/_search_form.html.twig | 9 +++ .../Resources/views/layout.html.twig | 8 ++- 7 files changed, 137 insertions(+), 18 deletions(-) create mode 100755 src/WallabagBundle/Resources/views/Static/about.html.twig create mode 100755 src/WallabagBundle/Resources/views/_save_form.html.twig create mode 100644 src/WallabagBundle/Resources/views/_search_form.html.twig (limited to 'src/WallabagBundle/Resources/views') diff --git a/src/WallabagBundle/Resources/views/Entry/entries.html.twig b/src/WallabagBundle/Resources/views/Entry/entries.html.twig index 81177298..de343aa2 100644 --- a/src/WallabagBundle/Resources/views/Entry/entries.html.twig +++ b/src/WallabagBundle/Resources/views/Entry/entries.html.twig @@ -7,6 +7,20 @@ {% endblock %} {% block content %} + {% block pager %} + {% if entries is not empty %} +
+
{{ entries.count }} {% trans %}entries{% endtrans %}
+ +
+ {% endif %} + {% endblock %} {% if entries is empty %}

{% trans %}No articles found.{% endtrans %}

@@ -21,9 +35,9 @@ {% endif %}

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

diff --git a/src/WallabagBundle/Resources/views/Entry/entry.html.twig b/src/WallabagBundle/Resources/views/Entry/entry.html.twig index 19d4650e..8c08b2ef 100644 --- a/src/WallabagBundle/Resources/views/Entry/entry.html.twig +++ b/src/WallabagBundle/Resources/views/Entry/entry.html.twig @@ -11,9 +11,9 @@ diff --git a/src/WallabagBundle/Resources/views/_save_form.html.twig b/src/WallabagBundle/Resources/views/_save_form.html.twig new file mode 100755 index 00000000..acaa5dbc --- /dev/null +++ b/src/WallabagBundle/Resources/views/_save_form.html.twig @@ -0,0 +1,10 @@ + diff --git a/src/WallabagBundle/Resources/views/_search_form.html.twig b/src/WallabagBundle/Resources/views/_search_form.html.twig new file mode 100644 index 00000000..7eb1b67d --- /dev/null +++ b/src/WallabagBundle/Resources/views/_search_form.html.twig @@ -0,0 +1,9 @@ + diff --git a/src/WallabagBundle/Resources/views/layout.html.twig b/src/WallabagBundle/Resources/views/layout.html.twig index 4a3f0f5c..34d9b1b0 100644 --- a/src/WallabagBundle/Resources/views/layout.html.twig +++ b/src/WallabagBundle/Resources/views/layout.html.twig @@ -19,9 +19,11 @@
{% block menu %}{% endblock %} {% block precontent %}{% endblock %} - {% block messages %} - {% include "WallabagBundle::_messages.html.twig" %} - {% endblock %} + {% for flashMessage in app.session.flashbag.get('notice') %} +
+ {{ flashMessage }} +
+ {% endfor %}
{% block content %}{% endblock %}
-- cgit v1.2.3