From 045ca0848c8ee7c771541a5829157531c782cf30 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 19 Apr 2017 14:51:48 +0300 Subject: juick-www: Home controller uses Pebble, drop ads wip --- juick-www/src/main/webapp/WEB-INF/views/index.html | 75 ++++++++++++++++++++++ .../src/main/webapp/WEB-INF/views/macros/tags.html | 5 ++ .../main/webapp/WEB-INF/views/partial/footer.html | 2 +- .../webapp/WEB-INF/views/partial/newmessage.html | 14 ++++ 4 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 juick-www/src/main/webapp/WEB-INF/views/index.html create mode 100644 juick-www/src/main/webapp/WEB-INF/views/macros/tags.html create mode 100644 juick-www/src/main/webapp/WEB-INF/views/partial/newmessage.html (limited to 'juick-www/src/main/webapp') diff --git a/juick-www/src/main/webapp/WEB-INF/views/index.html b/juick-www/src/main/webapp/WEB-INF/views/index.html new file mode 100644 index 00000000..09297ef9 --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/views/index.html @@ -0,0 +1,75 @@ +{% extends "layouts/content" %} +{% import "views/macros/tags" %} +{% block content %} +{% if noindex %} + +{% endif %} +{% if visitor.getUid() > 0 %} +{% include "views/partial/newmessage" %} +{% endif %} +{% for msg in msgs %} +
+
@{{ msg.getUser().getName() }}: + +
+ +
+ {{ tags(msg.getUser().getName(), msg.getTags()) }} +
+
+ + {%if msg.AttachmentType is not empty %} +

+ +

+ {% endif %} +

{{ msg.getText() | raw }}

+ {%if msg.AttachmentType is not empty %} +
+ {% endif %} + {% if not readonly %} + + {% endif %} + +
+{% endfor %} +{% if next is not empty %} +{{ next | raw }} +{% endif %} +{% endblock %} +{% block "column" %} +{% include "views/partial/homecolumn" %} +{% if noindex %} + +{% endif %} +{% endblock %} \ No newline at end of file diff --git a/juick-www/src/main/webapp/WEB-INF/views/macros/tags.html b/juick-www/src/main/webapp/WEB-INF/views/macros/tags.html new file mode 100644 index 00000000..ffd81ddd --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/views/macros/tags.html @@ -0,0 +1,5 @@ +{% macro tags(uname="", tagsList) %} +{% for tag in tagsList %} +{{ tag }} +{% endfor %} +{% endmacro %} \ No newline at end of file diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/footer.html b/juick-www/src/main/webapp/WEB-INF/views/partial/footer.html index 71d675de..491cf140 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/partial/footer.html +++ b/juick-www/src/main/webapp/WEB-INF/views/partial/footer.html @@ -11,7 +11,7 @@ Facebook diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/newmessage.html b/juick-www/src/main/webapp/WEB-INF/views/partial/newmessage.html new file mode 100644 index 00000000..452d1267 --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/views/partial/newmessage.html @@ -0,0 +1,14 @@ +
+
+ {% if readonly %} +

Комментирование временно недоступно

+ {% else %} + +
+ или загрузить
+
+ +
+ {% endif %} +
+
\ No newline at end of file -- cgit v1.2.3