From d91c5508f2172347e18ad93f6048582deda4ae02 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Mon, 26 Feb 2018 12:06:10 +0300
Subject: www: move templates to resources
---
.../resources/templates/views/partial/footer.html | 17 +++++
.../templates/views/partial/homecolumn.html | 23 ++++++
.../resources/templates/views/partial/message.html | 70 +++++++++++++++++
.../templates/views/partial/navigation.html | 24 ++++++
.../templates/views/partial/settings_tabs.html | 6 ++
.../templates/views/partial/tagcolumn.html | 33 ++++++++
.../resources/templates/views/partial/tags.html | 3 +
.../templates/views/partial/thread_list.html | 49 ++++++++++++
.../templates/views/partial/thread_tree.html | 2 +
.../templates/views/partial/usercolumn.html | 89 ++++++++++++++++++++++
.../templates/views/partial/usertags.html | 3 +
11 files changed, 319 insertions(+)
create mode 100644 juick-www/src/main/resources/templates/views/partial/footer.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/homecolumn.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/message.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/navigation.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/settings_tabs.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/tagcolumn.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/tags.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/thread_list.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/thread_tree.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/usercolumn.html
create mode 100644 juick-www/src/main/resources/templates/views/partial/usertags.html
(limited to 'juick-www/src/main/resources/templates/views/partial')
diff --git a/juick-www/src/main/resources/templates/views/partial/footer.html b/juick-www/src/main/resources/templates/views/partial/footer.html
new file mode 100644
index 00000000..87744183
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/footer.html
@@ -0,0 +1,17 @@
+
diff --git a/juick-www/src/main/resources/templates/views/partial/homecolumn.html b/juick-www/src/main/resources/templates/views/partial/homecolumn.html
new file mode 100644
index 00000000..6142e9e9
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/homecolumn.html
@@ -0,0 +1,23 @@
+
+
+ {% include "views/partial/tags" %}
+ {% if showAdv | default(false) %}
+ конструктор сайтов
+ {% endif %}
+
\ No newline at end of file
diff --git a/juick-www/src/main/resources/templates/views/partial/message.html b/juick-www/src/main/resources/templates/views/partial/message.html
new file mode 100644
index 00000000..9e3ede6c
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/message.html
@@ -0,0 +1,70 @@
+
+
+ {{ msg | formatMessage }}
+ {% if msg.AttachmentType is not empty %}
+
+
+
+ {% endif %}
+
+ {% if visitor.uid == msg.user.uid %}
+
+
+
+ {% if msg.Likes > 0 %} {{ msg.Likes }}{% endif %}
+
+ {{ i18n("messages","message.recommend") }}
+
+ {% elseif visitor.uid > 0 %}
+
+
+
+ {% if msg.Likes > 0 %} {{ msg.Likes }}{% endif %}
+
+ {{ i18n("messages","message.recommend") }}
+
+ {% else %}
+
+
+
+ {% if msg.Likes > 0 %} {{ msg.Likes }}{% endif %}
+
+ {{ i18n("messages","message.recommend") }}
+
+ {% endif %}
+ {% if (not msg.ReadOnly) or (visitor.uid == msg.user.uid) %}
+
+
+ {% endif %}
+ {% if msg.FriendsOnly %}
+ Открыть доступ
+ {% endif %}
+
+
\ No newline at end of file
diff --git a/juick-www/src/main/resources/templates/views/partial/navigation.html b/juick-www/src/main/resources/templates/views/partial/navigation.html
new file mode 100644
index 00000000..7afabcc3
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/navigation.html
@@ -0,0 +1,24 @@
+
diff --git a/juick-www/src/main/resources/templates/views/partial/settings_tabs.html b/juick-www/src/main/resources/templates/views/partial/settings_tabs.html
new file mode 100644
index 00000000..4715253e
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/settings_tabs.html
@@ -0,0 +1,6 @@
+
\ No newline at end of file
diff --git a/juick-www/src/main/resources/templates/views/partial/tagcolumn.html b/juick-www/src/main/resources/templates/views/partial/tagcolumn.html
new file mode 100644
index 00000000..3e61d3d3
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/tagcolumn.html
@@ -0,0 +1,33 @@
+
+
*{{ tag.name }}
+
+{% if visitor is not empty and visitor.uid > 0 %}
+
+{% endif %}
diff --git a/juick-www/src/main/resources/templates/views/partial/tags.html b/juick-www/src/main/resources/templates/views/partial/tags.html
new file mode 100644
index 00000000..3235213e
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/tags.html
@@ -0,0 +1,3 @@
+{% for tag in tags %}
+ {{ tag | raw }}
+{% endfor %}
\ No newline at end of file
diff --git a/juick-www/src/main/resources/templates/views/partial/thread_list.html b/juick-www/src/main/resources/templates/views/partial/thread_list.html
new file mode 100644
index 00000000..f273dec7
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/thread_list.html
@@ -0,0 +1,49 @@
+{% for msg in replies %}
+
+
+
+
{{ msg | formatMessage }}
+ {% if msg.AttachmentType is not empty %}
+
+ {% endif %}
+
/{{ msg.rid }}
+ {% if msg.replyto > 0 %}
+ {{ i18n("messages","reply.inReplyTo") }}
/{{ msg.replyto }}
+ {% endif %}
+ {% if msg.VisitorCanComment %}
+ ·
+
+
+ {% elseif visitor.uid == 0 %}
+ ·
{{ i18n("messages","reply.reply") }}
+
+ {% else %}
+
+ {% endif %}
+
+
+{% endfor %}
\ No newline at end of file
diff --git a/juick-www/src/main/resources/templates/views/partial/thread_tree.html b/juick-www/src/main/resources/templates/views/partial/thread_tree.html
new file mode 100644
index 00000000..f207b8e0
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/thread_tree.html
@@ -0,0 +1,2 @@
+{% import "views/macros/tree" %}
+{{ tree(replies, visitor, 0, 0, false) }}
\ No newline at end of file
diff --git a/juick-www/src/main/resources/templates/views/partial/usercolumn.html b/juick-www/src/main/resources/templates/views/partial/usercolumn.html
new file mode 100644
index 00000000..382c3622
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/usercolumn.html
@@ -0,0 +1,89 @@
+
+{% 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 %}
+
+
+
+
+
+ {% endfor %}
+
+ {% endif %}
+
+
diff --git a/juick-www/src/main/resources/templates/views/partial/usertags.html b/juick-www/src/main/resources/templates/views/partial/usertags.html
new file mode 100644
index 00000000..71d1303e
--- /dev/null
+++ b/juick-www/src/main/resources/templates/views/partial/usertags.html
@@ -0,0 +1,3 @@
+{% import "views/macros/tags" %}
+{{ tags(user.name, tagStats) }}
+...
\ No newline at end of file
--
cgit v1.2.3