From d0d3ac3743204c33153ea2354b3d672f147a14c1 Mon Sep 17 00:00:00 2001 From: Killy Date: Tue, 7 Nov 2017 05:14:57 +0300 Subject: www: tag state accessible from web --- juick-www/src/main/webapp/WEB-INF/views/index.html | 4 ++- .../webapp/WEB-INF/views/partial/tagcolumn.html | 33 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 juick-www/src/main/webapp/WEB-INF/views/partial/tagcolumn.html (limited to 'juick-www/src/main/webapp/WEB-INF') 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 23d208b6..10539c44 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/index.html +++ b/juick-www/src/main/webapp/WEB-INF/views/index.html @@ -12,7 +12,9 @@ {% endif %} {% endblock %} {% block "column" %} -{% if visitor.uid > 0 %} +{% if tag | default('') is not empty %} +{% include "views/partial/tagcolumn" %} +{% elseif visitor.uid > 0 %} {% include "views/partial/usercolumn" %} {% else %} {% include "views/partial/homecolumn" %} diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/tagcolumn.html b/juick-www/src/main/webapp/WEB-INF/views/partial/tagcolumn.html new file mode 100644 index 00000000..949a186a --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/views/partial/tagcolumn.html @@ -0,0 +1,33 @@ +