From 237739950a305b13c9f29e3ca25c2e835d563a3f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 5 May 2017 17:42:27 +0300 Subject: User controller -> pebble --- juick-www/src/main/webapp/WEB-INF/views/blog.html | 85 ++++++++++++++++++++++ juick-www/src/main/webapp/WEB-INF/views/index.html | 4 +- .../src/main/webapp/WEB-INF/views/macros/tags.html | 2 +- .../webapp/WEB-INF/views/partial/usercolumn.html | 76 +++++++++++++++++++ .../webapp/WEB-INF/views/partial/usertags.html | 3 + 5 files changed, 166 insertions(+), 4 deletions(-) create mode 100644 juick-www/src/main/webapp/WEB-INF/views/blog.html create mode 100644 juick-www/src/main/webapp/WEB-INF/views/partial/usercolumn.html create mode 100644 juick-www/src/main/webapp/WEB-INF/views/partial/usertags.html (limited to 'juick-www/src/main/webapp/WEB-INF/views') diff --git a/juick-www/src/main/webapp/WEB-INF/views/blog.html b/juick-www/src/main/webapp/WEB-INF/views/blog.html new file mode 100644 index 00000000..6672adff --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/views/blog.html @@ -0,0 +1,85 @@ +{% extends "layouts/content" %} +{% import "views/macros/tags" %} +{% block content %} +{% if noindex %} + +{% endif %} +{% if paramTag | default('') is not empty %} +

← Все записи с тегом {{ paramTag.name | escape }}

+{% endif %} +{% if paramTag | default('') is not empty %} +

← Все записи с тегом {{ paramTag.name | escape }}

+{% endif %} +{% for msg in msgs %} +
+
@{{ msg.user.name }}: + +
+ +
+ {{ tags(msg.user.name, msg.tags) }} +
+
+ + {% if msg.AttachmentType is not empty %} +

+ +

+ {% endif %} +

{{ msg | formatMessage }}

+ {% if msg.AttachmentType is not empty %} +
+ {% endif %} + {% if not readonly %} + + {% endif %} + +
+{% endfor %} +{% if (next | default('')) is not empty %} +{{ next | raw }} +{% endif %} +{% endblock %} +{% block "column" %} +{% include "views/partial/usercolumn" %} +{% if noindex %} + +{% endif %} +{% endblock %} \ No newline at end of file diff --git a/juick-www/src/main/webapp/WEB-INF/views/index.html b/juick-www/src/main/webapp/WEB-INF/views/index.html index 0e4eb6ba..0bf2a2fd 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/index.html +++ b/juick-www/src/main/webapp/WEB-INF/views/index.html @@ -68,9 +68,7 @@ {% endfor %} -{% if (next | default('')) is not empty %} -{{ next | raw }} -{% endif %} +{{ next | default ('') | raw }} {% endblock %} {% block "column" %} {% include "views/partial/homecolumn" %} 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 index ffd81ddd..b34e6ecc 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/macros/tags.html +++ b/juick-www/src/main/webapp/WEB-INF/views/macros/tags.html @@ -1,5 +1,5 @@ {% macro tags(uname="", tagsList) %} {% for tag in tagsList %} -{{ tag }} +{{ tag.name }} {% endfor %} {% endmacro %} \ No newline at end of file diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/usercolumn.html b/juick-www/src/main/webapp/WEB-INF/views/partial/usercolumn.html new file mode 100644 index 00000000..7e3b8a64 --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/views/partial/usercolumn.html @@ -0,0 +1,76 @@ +
+ {{ user.name }}
+{% if visitor is not empty and visitor.uid > 0 and visitor.uid != user.uid %} + +{% else %} +
+{% endif %} + +
+
+

+
+{% include "views/partial/usertags" %} +
+
+ + {% if iread is not empty %} +
+ {% for u in iread %} + + + {{ u.name }} + + + {% endfor %} +
+ {% endif %} + +
diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/usertags.html b/juick-www/src/main/webapp/WEB-INF/views/partial/usertags.html new file mode 100644 index 00000000..78e1416e --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/views/partial/usertags.html @@ -0,0 +1,3 @@ +{% import "views/macros/tags" %} +{{ tags(uname=user.name, tagsStats) }} +... \ No newline at end of file -- cgit v1.2.3