aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/views/partial/message.html
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-01-31 16:06:20 +0300
committerGravatar Vitaly Takmazov2020-01-31 16:06:20 +0300
commit2f4cac371521094e61dd99067b9ed2329cc9f8d9 (patch)
treeea4acec3858acb1354d8ca3a9ddbc8a269b01eb5 /src/main/resources/templates/views/partial/message.html
parent4e0d11ab6fb0e3e482b3b7f3877552b9ec1f42e1 (diff)
Action panel styling
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