diff options
Diffstat (limited to 'src/main/resources/templates/views')
-rw-r--r-- | src/main/resources/templates/views/partial/message.html | 22 | ||||
-rw-r--r-- | src/main/resources/templates/views/thread.html | 10 |
2 files changed, 15 insertions, 17 deletions
diff --git a/src/main/resources/templates/views/partial/message.html b/src/main/resources/templates/views/partial/message.html index 8b8670ce..132d1ea2 100644 --- a/src/main/resources/templates/views/partial/message.html +++ b/src/main/resources/templates/views/partial/message.html @@ -7,6 +7,9 @@ <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"> @@ -50,9 +53,13 @@ <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 }}{% endif %} + {% if msg.likes > 0 %} + {{ msg.likes }} + {% else %} + <span> {{ i18n("messages","message.recommend") }}</span> + {% endif %} </span> - <span> {{ i18n("messages","message.recommend") }}</span> + </a> {% endif %} {% if (not msg.ReadOnly) or (visitor.uid == msg.user.uid) %} @@ -65,17 +72,12 @@ {% else %} {{ msg.Replies }} {% endif %} + {% else %} + <span> {{ i18n("messages","message.comment") }}</span> {% endif %} </span> - <span> {{ i18n("messages","message.comment") }}</span> - </a> - <a href="#" class="msg-menu msg-button"> - <i data-icon="ei-link" data-size="s"></i> - <span> {{ i18n("messages","message.share") }}</span> + </a> {% endif %} - {% if msg.FriendsOnly %} - <a href="#" class="a-privacy">Открыть доступ</a> - {% endif %} </nav> </article>
\ No newline at end of file diff --git a/src/main/resources/templates/views/thread.html b/src/main/resources/templates/views/thread.html index e09c1e60..9337a87c 100644 --- a/src/main/resources/templates/views/thread.html +++ b/src/main/resources/templates/views/thread.html @@ -12,6 +12,9 @@ <a href="/{{ msg.user.name }}/"><span>{{ msg.user.name }}</span></a> </span> <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"> @@ -63,10 +66,6 @@ </a> {% endif %} - <a href="#" class="msg-menu msg-button"> - <i data-icon="ei-link" data-size="s"></i> - <span> {{ i18n("messages","message.share") }}</span> - </a> {% if visitor.uid > 0 %} {% if visitor.uid != msg.user.uid %} {% if visitorSubscribed %} @@ -87,9 +86,6 @@ </a> {% endif %} {% endif %} - {% if msg.FriendsOnly %} - <a href="#" class="a-privacy">Открыть доступ</a> - {% endif %} </nav> {% if msg.VisitorCanComment %} <form class="msg-comment-target"> |