diff options
author | Vitaly Takmazov | 2021-03-31 00:44:49 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-03-31 00:44:49 +0300 |
commit | 93fe99d9bfc9ae00f4164ea0ba32290722dff4dd (patch) | |
tree | f0637a6ad99ae7033e2fee4d100ed1fc63e64728 /src/main/resources/templates/views/partial | |
parent | fbe50e415fbb3da5a7fa151338b00e6a94dc8d5d (diff) |
Resource filtering is handled by Spring Boot Maven plugin
Diffstat (limited to 'src/main/resources/templates/views/partial')
9 files changed, 302 insertions, 0 deletions
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 @@ +<div id="footer" class="desktop"> + <div id="footer-left">juick.com © 2008-2021 + {% if links | default ('') is not empty %} + <br/>{{ i18n("messages","label.sponsors") }}: {{ links | raw }} + {% endif %} + </div> + <div id="footer-right"> · + <a href="/help/contacts" rel="nofollow">{{ i18n("messages","link.contacts") }}</a> · + <a href="/help/tos" rel="nofollow">{{ i18n("messages","link.tos") }}</a> + </div> +</div> 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 @@ +<div class="toolbar"> + <a href="/?show=top" title="Top"> + <i data-icon="ei-heart" data-size="s"></i> + <span class="desktop">Top</span> + </a> + <a href="/?show=all" title="{{ i18n("messages", "link.allMessages") }}"> + <i data-icon="ei-search" data-size="s"></i> + <span class="desktop">{{ i18n("messages","link.allMessages") }}</span> + </a> + <a href="/?show=photos" title="{{ i18n("messages", "link.withPhotos") }}"> + <i data-icon="ei-camera" data-size="s"></i> + <span class="desktop">{{ i18n("messages", "link.withPhotos") }}</span> + </a> +</div> +<div class="tags desktop"> + <h4>{{ i18n("messages","link.trends") }}</h4> + {% include "views/partial/tags" %} + {% if showAdv | default(false) %} + <h4>Наши друзья</h4> + <a target="_blank" href="https://ru.jooble.org"> + <img src="https://ru.jooble.org/css/images/logos/jooble_80x30.png" alt="Работа в России"/> + </a> + {% endif %} +</div> +{% 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 @@ +<article class="msg-cont" data-mid="{{ msg.mid }}"> + <header class="h"> + <span> + <a href="/{{ msg.user.name }}/"><span>{{ msg.user.name }}</span></a> + </span> + <div class="msg-avatar"><a href="/{{ msg.user.name }}/"> + <img src="{{ msg.user.avatar }}" alt="{{ msg.user.name }}"/></a> + </div> + <div class="msg-ts"> + {% if msg.FriendsOnly %} + <i data-icon="ei-lock" data-size="s"></i> · + {% endif %} + <a href="/{{ msg.user.name }}/{{ msg.mid }}"> + <time datetime="{{ msg.created | timestamp | date('yyyy-MM-dd HH:mm:ss') }}Z" + title="{{ msg.created | timestamp | date('yyyy-MM-dd HH:mm:ss') }} GMT"> + {{ msg.created | prettyTime }} + </time> + </a> + {% if msg.created != msg.updatedAt %} + · Edited + {% endif %} + </div> + </header> + <div class="msg-txt"> + <span class="msg-tags"> + {{ tags(msg.user.name, msg.tags | tagsList) }} + </span> + {{ msg | formatMessage }} + </div> + {% if msg.AttachmentType is not empty %} + <p class="ir"><a href="//i.juick.com/p/{{ msg.mid }}.{{ msg.AttachmentType }}" data-fname="{{ msg.mid }}.{{ msg.AttachmentType }}"> + <img src="//i.juick.com/photos-512/{{ msg.mid }}.{{ msg.AttachmentType }}" alt=""/></a> + </p> + {% endif %} + <nav class="l"> + {% if visitor.uid == msg.user.uid %} + <a href="/{{ msg.mid }}" class="a-like msg-button"> + <span class="msg-button-icon"> + <i data-icon="ei-heart" data-size="s"></i> + {% if msg.likes > 0 %} {{ msg.likes }} + {% else %} + <span> {{ i18n("messages","message.recommend") }}</span> + {% endif %} + </span> + </a> + {% elseif visitor.uid > 0 %} + <a href="/post?body=!+%23{{ msg.mid }}" class="a-like msg-button"> + <span class="msg-button-icon"> + <i data-icon="ei-heart" data-size="s"></i> + {% if msg.likes > 0 %} {{ msg.likes }} + {% else %} + <span> {{ i18n("messages","message.recommend") }}</span> + {% endif %} + </span> + </a> + {% else %} + <a href="/login" class="a-login msg-button"> + <span class="msg-button-icon"> + <i data-icon="ei-heart" data-size="s"></i> + {% if msg.likes > 0 %} + {{ msg.likes }} + {% else %} + <span> {{ i18n("messages","message.recommend") }}</span> + {% endif %} + </span> + + </a> + {% endif %} + {% if (not msg.ReadOnly) or (visitor.uid == msg.user.uid) %} + <a href="/{{ msg.mid }}" class="a-comment msg-button"> + <span class="msg-button-icon"> + <i data-icon="ei-comment" data-size="s"></i> + {% if msg.Replies > 0 %} + {% if msg.unread %} + <span class="badge">{{ msg.Replies }}</span> + {% else %} + {{ msg.Replies }} + {% endif %} + {% else %} + <span> {{ i18n("messages","message.comment") }}</span> + {% endif %} + </span> + + </a> + {% endif %} + </nav> +</article>
\ 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 @@ +<div id="header"> + <div id="header_wrapper"> + {% if visitor.uid > 0 %} + <div id="ctitle"> + <a href="/{{ visitor.name }}/"> + <img src="{{ visitor.avatar }}" alt=""/>{{ visitor.name }} + {% if not visitor.verified %} + <span style="color: red;"><i data-icon="ei-exclamation" data-size="s"></i></span> + {% endif %} + </a> + </div> + {% else %} + <div id="logo"><a href="/{% if visitor.uid > 0 %}?show=my{% endif %}">Juick</a></div> + {% endif %} + <div id="search" class="desktop"> + <form action="/"> + <input name="search" class="text" + placeholder="{{ i18n('messages','label.search') }}" value="{{ search | default('') }}"/> + </form> + </div> + <nav id="global"> + <a href="/"> + <i data-icon="ei-bell" data-size="s"></i> + <span class="icon-title desktop">{{ i18n("messages","link.discuss") }}</span>{% if visitor.unreadCount > 0 %}<span class="badge">{{ visitor.unreadCount }}</span>{% endif %} + </a> + <a href="/?show=all" rel="nofollow"> + <i data-icon="ei-search" data-size="s"></i> + <span class="icon-title desktop">{{ i18n("messages","link.allMessages") }}</span> + </a> + {% if visitor.uid > 0 %} + <a id="post" href="/post"> + <i data-icon="ei-pencil" data-size="s"></i> + <span class="icon-title desktop">{{ i18n("messages","link.postMessage") }}</span> + </a> + {% else %} + <a class="a-login" href="/login" rel="nofollow"> + <i data-icon="ei-user" data-size="s"></i> + <span class="icon-title desktop">{{ i18n("messages", "link.Login") }}</span> + </a> + {% endif %} + </nav> + </div> +</div> 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 @@ +<div id="pagetabs"> + <div class="toolbar"> + <a href="/settings">{{ i18n("messages","link.settings.main") }}</a> + <a href="/settings?page=password">{{ i18n("messages","link.settings.password") }}</a> + <a href="/settings?page=about">{{ i18n("messages","link.settings.about") }}</a> + <a href="/logout"><i data-icon="ei-user" data-size="s"></i>{{ i18n("messages","link.logout") }}</a> + </div> +</div> +<span class="desktop"> + {% include "views/partial/footer" %} +</span>
\ 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 @@ +<div id="ctitle"> + <h2>*{{ tag.name }}</h2> +</div> +{% if visitor is not empty and visitor.uid > 0 %} +<div class="toolbar"> + {% if isSubscribed %} + <a href="/post?body=U+%2A{{ tag.name }}" title="Подписан"> + <i data-icon="ei-check" data-size="s"></i>Subscribed + </a> + {% else %} + <a href="/post?body=S+%2A{{ tag.name }}" title="Подписаться"> + <i data-icon="ei-plus" data-size="s"></i>Subscribe + </a> + {% endif %} + {% if isInBL %} + <a href="/post?body=BL+%2A{{ tag.name }}" title="Разблокировать"> + <i data-icon="ei-close-o" data-size="s"></i>Unblock + </a> + {% else %} + <a href="/post?body=BL+%2A{{ tag.name }}" title="Заблокировать"> + <i data-icon="ei-close" data-size="s"></i>Block + </a> + {% endif %} +</div> +{% 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 %} + <a href="/tag/{{ tag | urlencode }}" title="{{ tag }}">{{ tag }}</a> +{% 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 @@ +<div class="toolbar"> + {% if visitor is not empty and visitor.uid > 0 and visitor.uid != user.uid %} + <div id="ctitle"> + <a href="/{{ user.name }}"> + <img src="{{ user.avatar }}" alt="" />{{ user.name }} + </a> + </div> + {% if isSubscribed %} + <a href="/post?body=U+%40{{ user.name }}" title="Подписан"> + <i data-icon="ei-check" data-size="s"></i> + <span class="desktop">Subscribed</span> + </a> + {% else %} + <a href="/post?body=S+%40{{ user.name }}" title="Подписаться"> + <i data-icon="ei-plus" data-size="s"></i> + <span class="desktop">Subscribe</span> + </a> + {% endif %} + {% if isInBL %} + <a href="/post?body=BL+%40{{ user.name }}" title="Разблокировать"> + <i data-icon="ei-close-o" data-size="s"></i> + <span class="dekstop">Unblock</span> + </a> + {% else %} + <a href="/post?body=BL+%40{{ user.name }}" title="Заблокировать"> + <i data-icon="ei-close" data-size="s"></i> + <span class="desktop">Block</span> + </a> + {% endif %} + {% if not isInBLAny %} + <a href="/pm/sent?uname={{ user.name }}" title="Написать приватное сообщение"> + <i data-icon="ei-envelope" data-size="s"></i> + <span class="desktop">PM</span> + </a> + {% endif %} + {% endif %} + {% if visitor is not empty and visitor.uid == user.uid %} + <a href="/?show=my"><i data-icon="ei-clock" data-size="s"></i> + <span class="desktop">{{ i18n("messages","link.my") }}</span> + </a> + <a href="/pm/inbox"><i data-icon="ei-envelope" data-size="s"></i> + <span class="desktop">{{ i18n("messages","link.privateMessages") }}</span> + </a> + <a href="/?show=discuss"><i data-icon="ei-bell" data-size="s"></i> + <span class="desktop">{{ i18n("messages","link.discuss") }}</span> + </a> + {% endif %} + {% if visitor is not empty and visitor.uid == user.uid and false %} + <a href="/?show=mycomments" rel="nofollow">{{ i18n("messages","blog.comments") }}</a> + <a href="/?show=unanswered" rel="nofollow">Неотвеченные</a> + {% endif %} + {% if visitor is not empty and visitor.uid == user.uid %} + + <a href="/settings" rel="nofollow"> + <i data-icon="ei-gear" data-size="s"></i> + {% if not visitor.verified %} + <span style="color: red;"><i data-icon="ei-exclamation" data-size="s"></i></span> + {% else %} + <span class="desktop">{{ i18n("messages","link.settings") }}</span> + {% endif %} + </a> + {% endif %} +</div> +<form action="/{{ user.name }}/" class="desktop" style="padding: 6px;"> + <p><input type="text" name="search" class="inp" placeholder="{{ i18n('messages','label.search') }}" /></p> +</form> +<span class="desktop" style="padding: 6px;"> + {% include "views/partial/usertags" %} +</span> +<div id="ustats" class="desktop" style="padding: 6px;"> + <ul> + <li><a href="/{{ user.name }}/friends">{{ i18n("messages","blog.iread") }}: {{ statsIRead }}</a></li> + <li><a href="/{{ user.name }}/readers">{{ i18n("messages","blog.readers") }}: {{ statsMyReaders }}</a></li> + {% if statsMyBL > 0 and visitor.uid == user.uid %} + <li><a href="/{{ user.name }}/bl">{{ i18n("messages","blog.bl") }}: {{ statsMyBL }}</a></li> + {% endif %} + <li>{{ i18n("messages","blog.messages") }}: {{ statsMessages }}</li> + <li>{{ i18n("messages","blog.comments") }}: {{ statsReplies }}</li> + </ul> + {% if iread is not empty %} + <div class="iread"> + {% for u in iread %} + <span> + <a href="/{{ u.name }}/"> + <img src="//i.juick.com/as/{{ u.uid }}.png" alt="{{ u.name }}" /> + </a> + </span> + {% endfor %} + </div> + {% endif %} + +</div> +{% 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) }} +<a href="/{{ user.name }}/tags" rel="nofollow">...</a>
\ No newline at end of file |