chat tpl changes

main
barisusakli 9 years ago
parent 6aa3afb702
commit 945b9af86e

@ -4,12 +4,13 @@
<div class="row">
<div class="col-md-4">
<ul component="chat/recent" class="chats-list" data-nextstart="{nextStart}">
<!-- BEGIN chats -->
<!-- BEGIN rooms -->
<li component="chat/recent/room" data-roomid="{rooms.roomId}" class="<!-- IF ../unread -->unread<!-- ENDIF ../unread -->">
<!-- BEGIN rooms.users -->
<!-- IMPORT partials/chat_contact.tpl -->
<!-- END chats -->
<!-- BEGIN contacts -->
<!-- IMPORT partials/chat_contact.tpl -->
<!-- END contacts -->
<!-- END rooms.users -->
</li>
<!-- END rooms -->
</ul>
</div>
@ -19,11 +20,11 @@
[[error:chat-restricted]]
</div>
<!-- ENDIF !allowed -->
<!-- IF meta -->
<div component="chat/messages" class="expanded-chat" data-uid="{meta.uid}" data-username="{meta.username}">
<!-- IF roomId -->
<div component="chat/messages" class="expanded-chat" data-roomid="{roomId}">
<button type="button" class="close" data-action="pop-out"><span aria-hidden="true"><i class="fa fa-compress"></i></span><span class="sr-only">[[modules:chat.pop-out]]</span></button>
<h1 component="chat/title">{meta.username}</h1>
<h1 component="chat/title">{usernames}</h1>
<span class="since-bar"><a href="#" class="selected" data-since="recent">[[recent:title]]</a> &bull; <a href="#" data-since="week">[[modules:chat.seven_days]]</a> &bull; <a href="#" data-since="month">[[modules:chat.thirty_days]]</a> &bull; <a href="#" data-since="threemonths">[[modules:chat.three_months]]</a></span>
@ -41,6 +42,6 @@
<div class="alert alert-info">
[[modules:chat.no-messages]]
</div>
<!-- ENDIF meta -->
<!-- ENDIF roomId -->
</div>
</div>

@ -1,4 +1,4 @@
<li data-username="{../username}" data-uid="{../uid}" class="<!-- IF ../unread -->unread<!-- ENDIF ../unread -->">
<div data-username="{../username}" data-uid="{../uid}" >
<!-- IF ../picture -->
<img class="user-img" src="{../picture}">
<!-- ELSE -->
@ -8,4 +8,4 @@
<span class="username">{../username}</span>
<span class="teaser-content">{../teaser.content}</span>
<span class="teaser-timestamp timeago" title="{../teaser.timestampISO}"></span>
</li>
</div>
Loading…
Cancel
Save