From 93fe99d9bfc9ae00f4164ea0ba32290722dff4dd Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 31 Mar 2021 00:44:49 +0300 Subject: Resource filtering is handled by Spring Boot Maven plugin --- .../resources/templates/views/partial/footer.html | 11 +++ .../templates/views/partial/homecolumn.html | 25 ++++++ .../resources/templates/views/partial/message.html | 87 ++++++++++++++++++++ .../templates/views/partial/navigation.html | 43 ++++++++++ .../templates/views/partial/settings_tabs.html | 11 +++ .../templates/views/partial/tagcolumn.html | 26 ++++++ .../resources/templates/views/partial/tags.html | 3 + .../templates/views/partial/usercolumn.html | 93 ++++++++++++++++++++++ .../templates/views/partial/usertags.html | 3 + 9 files changed, 302 insertions(+) create mode 100644 src/main/resources/templates/views/partial/footer.html create mode 100644 src/main/resources/templates/views/partial/homecolumn.html create mode 100644 src/main/resources/templates/views/partial/message.html create mode 100644 src/main/resources/templates/views/partial/navigation.html create mode 100644 src/main/resources/templates/views/partial/settings_tabs.html create mode 100644 src/main/resources/templates/views/partial/tagcolumn.html create mode 100644 src/main/resources/templates/views/partial/tags.html create mode 100644 src/main/resources/templates/views/partial/usercolumn.html create mode 100644 src/main/resources/templates/views/partial/usertags.html (limited to 'src/main/resources/templates/views/partial') diff --git a/src/main/resources/templates/views/partial/footer.html b/src/main/resources/templates/views/partial/footer.html new file mode 100644 index 00000000..9a627373 --- /dev/null +++ b/src/main/resources/templates/views/partial/footer.html @@ -0,0 +1,11 @@ + diff --git a/src/main/resources/templates/views/partial/homecolumn.html b/src/main/resources/templates/views/partial/homecolumn.html new file mode 100644 index 00000000..a4cca153 --- /dev/null +++ b/src/main/resources/templates/views/partial/homecolumn.html @@ -0,0 +1,25 @@ +
+ + + Top + + + + {{ i18n("messages","link.allMessages") }} + + + + {{ i18n("messages", "link.withPhotos") }} + +
+
+

{{ i18n("messages","link.trends") }}

+ {% include "views/partial/tags" %} + {% if showAdv | default(false) %} +

Наши друзья

+ + Работа в России + + {% endif %} +
+{% include "views/partial/footer" %} \ No newline at end of file diff --git a/src/main/resources/templates/views/partial/message.html b/src/main/resources/templates/views/partial/message.html new file mode 100644 index 00000000..47dfb6c5 --- /dev/null +++ b/src/main/resources/templates/views/partial/message.html @@ -0,0 +1,87 @@ +
+
+ + {{ msg.user.name }} + +
+ {{ msg.user.name }} +
+
+ {% if msg.FriendsOnly %} + · + {% endif %} + + + + {% if msg.created != msg.updatedAt %} + · Edited + {% endif %} +
+
+
+ + {{ tags(msg.user.name, msg.tags | tagsList) }} + + {{ msg | formatMessage }} +
+ {% if msg.AttachmentType is not empty %} +

+ +

+ {% endif %} + +
\ No newline at end of file diff --git a/src/main/resources/templates/views/partial/navigation.html b/src/main/resources/templates/views/partial/navigation.html new file mode 100644 index 00000000..184c8f2b --- /dev/null +++ b/src/main/resources/templates/views/partial/navigation.html @@ -0,0 +1,43 @@ + diff --git a/src/main/resources/templates/views/partial/settings_tabs.html b/src/main/resources/templates/views/partial/settings_tabs.html new file mode 100644 index 00000000..00f7068a --- /dev/null +++ b/src/main/resources/templates/views/partial/settings_tabs.html @@ -0,0 +1,11 @@ +
+
+ {{ i18n("messages","link.settings.main") }} + {{ i18n("messages","link.settings.password") }} + {{ i18n("messages","link.settings.about") }} + {{ i18n("messages","link.logout") }} +
+
+ + {% include "views/partial/footer" %} + \ No newline at end of file diff --git a/src/main/resources/templates/views/partial/tagcolumn.html b/src/main/resources/templates/views/partial/tagcolumn.html new file mode 100644 index 00000000..a7728ef3 --- /dev/null +++ b/src/main/resources/templates/views/partial/tagcolumn.html @@ -0,0 +1,26 @@ +
+

*{{ tag.name }}

+
+{% if visitor is not empty and visitor.uid > 0 %} +
+ {% if isSubscribed %} + + Subscribed + + {% else %} + + Subscribe + + {% endif %} + {% if isInBL %} + + Unblock + + {% else %} + + Block + + {% endif %} +
+{% endif %} +{% include "views/partial/footer" %} \ No newline at end of file diff --git a/src/main/resources/templates/views/partial/tags.html b/src/main/resources/templates/views/partial/tags.html new file mode 100644 index 00000000..4d05b7fb --- /dev/null +++ b/src/main/resources/templates/views/partial/tags.html @@ -0,0 +1,3 @@ +{% for tag in tags %} + {{ tag }} +{% endfor %} \ No newline at end of file diff --git a/src/main/resources/templates/views/partial/usercolumn.html b/src/main/resources/templates/views/partial/usercolumn.html new file mode 100644 index 00000000..ee9ab267 --- /dev/null +++ b/src/main/resources/templates/views/partial/usercolumn.html @@ -0,0 +1,93 @@ +
+ {% if visitor is not empty and visitor.uid > 0 and visitor.uid != user.uid %} +
+ + {{ user.name }} + +
+ {% if isSubscribed %} + + + Subscribed + + {% else %} + + + Subscribe + + {% endif %} + {% if isInBL %} + + + Unblock + + {% else %} + + + Block + + {% endif %} + {% if not isInBLAny %} + + + PM + + {% endif %} + {% endif %} + {% if visitor is not empty and visitor.uid == user.uid %} + + {{ i18n("messages","link.my") }} + + + {{ i18n("messages","link.privateMessages") }} + + + {{ i18n("messages","link.discuss") }} + + {% endif %} + {% if visitor is not empty and visitor.uid == user.uid and false %} + {{ i18n("messages","blog.comments") }} + Неотвеченные + {% endif %} + {% if visitor is not empty and visitor.uid == user.uid %} + + + + {% if not visitor.verified %} + + {% else %} + {{ i18n("messages","link.settings") }} + {% endif %} + + {% endif %} +
+
+

+
+ + {% include "views/partial/usertags" %} + +
+ + {% if iread is not empty %} +
+ {% for u in iread %} + + + {{ u.name }} + + + {% endfor %} +
+ {% endif %} + +
+{% include "views/partial/footer" %} \ No newline at end of file diff --git a/src/main/resources/templates/views/partial/usertags.html b/src/main/resources/templates/views/partial/usertags.html new file mode 100644 index 00000000..71d1303e --- /dev/null +++ b/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