aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/views/partial/message.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/templates/views/partial/message.html')
-rw-r--r--src/main/resources/templates/views/partial/message.html22
1 files changed, 12 insertions, 10 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> &middot;
+ {% 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 %}&nbsp;{{ msg.likes }}{% endif %}
+ {% if msg.likes > 0 %}
+ {{ msg.likes }}
+ {% else %}
+ <span>&nbsp;{{ i18n("messages","message.recommend") }}</span>
+ {% endif %}
</span>
- <span>&nbsp;{{ 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>&nbsp;{{ i18n("messages","message.comment") }}</span>
{% endif %}
</span>
- <span>&nbsp;{{ i18n("messages","message.comment") }}</span>
- </a>
- <a href="#" class="msg-menu msg-button">
- <i data-icon="ei-link" data-size="s"></i>
- <span>&nbsp;{{ 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