From fe9327983d849ebe30496d711ee064404379bb4f Mon Sep 17 00:00:00 2001 From: Gustavo Date: Tue, 11 Apr 2017 00:01:54 -0300 Subject: [PATCH] Manage News template updated --- news/templates/news/list.html | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/news/templates/news/list.html b/news/templates/news/list.html index 4632a0a..812a6ab 100644 --- a/news/templates/news/list.html +++ b/news/templates/news/list.html @@ -26,11 +26,55 @@ {% endfor %} {% endif %} -
-
- {% trans "Create news" %} +
+
+
+
+
+ +
+
+ +
+
+
+
+
+{% if news %} + {% for new in news %} +
+
+
+ +

{{ new }}

+

{{ new.creator}}, em {{ new.create_date }}

+
+ +
+ +
+ {% endfor %} + {% pagination request paginator page_obj %} +{% else %} +
+
+

{% trans 'No news found' %}

+
+
+{% endif %} + {% endblock %} -- libgit2 0.21.2