diff options
author | Vitaly Takmazov | 2017-10-19 16:34:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-10-21 22:53:09 +0000 |
commit | ff106a64431e6510267ab0677c41d95d555b3956 (patch) | |
tree | 22ef5e3e4bd7992906ed050d07f8a13c2c317882 /juick-www/src/main/webapp/WEB-INF/views/thread.html | |
parent | 673dbb9b9bab99b458eb94c78d1e54e4c70e4b86 (diff) |
www: new design
Diffstat (limited to 'juick-www/src/main/webapp/WEB-INF/views/thread.html')
-rw-r--r-- | juick-www/src/main/webapp/WEB-INF/views/thread.html | 59 |
1 files changed, 27 insertions, 32 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/views/thread.html b/juick-www/src/main/webapp/WEB-INF/views/thread.html index 679550d5..f7093e0a 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/thread.html +++ b/juick-www/src/main/webapp/WEB-INF/views/thread.html @@ -4,7 +4,6 @@ <ul id="0"> <li id="msg-{{ msg.mid }}" class="msg msgthread"> <div class="msg-cont" itemscope="" itemtype="http://schema.org/BlogPosting" itemref="org"> - <div class="msg-menu"><a href="#"><i data-icon="ei-link" data-size="s"></i></a></div> <div class="msg-ts"><a href="/{{ msg.user.name }}/{{ msg.mid }}"> <time itemprop="datePublished dateModified" datetime="{{ msg.timestamp | timestamp | date('yyyy-MM-dd HH:mm:ss') }}Z" title="{{ msg.timestamp | timestamp | date('yyyy-MM-dd HH:mm:ss') }} GMT"> @@ -32,6 +31,32 @@ </a> </div> {% endif %} + <nav class="l"> + {% if visitor.uid != msg.user.uid %} + {% if visitor.uid > 0 %} + <a href="/post?body=!+%23{{ msg.mid }}" class="a-like"> + <i data-icon="ei-heart" data-size="s"></i> {{ i18n("messages","message.recommend") }} + {% if msg.Likes > 0 %} ({{ msg.Likes }}){% endif %} + </a> + {% else %} + <a href="/login" class="a-login"> + <i data-icon="ei-heart" data-size="s"></i> {{ i18n("messages","message.recommend") }} + {% if msg.Likes > 0 %} ({{ msg.Likes }}){% endif %} + </a> + {% endif %} + {% endif %} + {% if (visitor.uid > 0 and not msg.ReadOnly) or (visitor.uid == msg.user.uid) %} + <a href="#" class="msg-menu"><i data-icon="ei-link" data-size="s"></i> Share</a> + {% endif %} + {% if msg.FriendsOnly %} + <a href="#" class="a-privacy">Открыть доступ</a> + {% endif %} + {% if isModerator %} + <a href="#" class="a-popular-plus">+</a> + <a href="#" class="a-popular-minus">-</a> + <a href="#" class="a-popular-delete">x</a> + {% endif %} + </nav> {% if msg.VisitorCanComment %} <form action="/comment" method="POST" enctype="multipart/form-data"> <input type="hidden" name="mid" value="{{ msg.mid }}"/> @@ -51,37 +76,6 @@ {% endif %} </div> </li> - - <li class="toolbar"> - <ul> - <li><a href="/{{ msg.mid }}"> - <div style="background-position: -64px 0"></div> - {{ msg.mid }}</a> - </li> - {% if visitor.uid > 0 %} - {% if visitor.uid != msg.user.uid %} - {% if visitorSubscribed %} - <li><a href="/post?body=U+%23{{ msg.mid }}"> - <div style="background-position: -48px 0"></div> - {{ i18n("messages","message.subscribed") }}</a></li> - {% else %} - <li><a href="/post?body=S+%23{{ msg.mid }}"> - <div style="background-position: -16px 0"></div> - {{ i18n("messages","message.subscribe") }}</a></li> - {% endif %} - {% if not visitorInBL %} - <li><a href="/post?body=%21+%23{{ msg.mid }}"> - <div style="background-position: -32px 0"></div> - {{ i18n("messages","message.recommend") }}</a></li> - {% endif %} - {% else %} - <li><a href="/post?body=D+%23{{ msg.mid }}"> - <div style="background-position: 0"></div> - {{ i18n("messages","message.delete") }}</a></li> - {% endif %} - {% endif %} - </ul> - </li> </ul> <div class="title2"> <div class="title2-right"> @@ -106,4 +100,5 @@ </ul> {% endblock %} {% block "column" %} +{% include "views/partial/usercolumn" %} {% endblock %}
\ No newline at end of file |