yay, chats redesigned finally
parent
90d9c771ea
commit
21aea38baf
@ -1,24 +1,28 @@
|
|||||||
<li component="chat/recent/room" data-roomid="{rooms.roomId}" class="<!-- IF rooms.unread -->unread<!-- ENDIF rooms.unread -->">
|
<li component="chat/recent/room" data-roomid="{rooms.roomId}" class="<!-- IF rooms.unread -->unread<!-- ENDIF rooms.unread -->">
|
||||||
<i class="fa fa-times pull-right leave" component="chat/leave"></i>
|
<i class="fa fa-times pull-right leave" component="chat/leave"></i>
|
||||||
<div>
|
<strong class="room-name">
|
||||||
<p><!-- IF rooms.roomName -->{rooms.roomName}<!-- ELSE -->{rooms.usernames}<!-- ENDIF rooms.roomName --></p>
|
<!-- IF !rooms.lastUser.uid -->
|
||||||
<ul class="members">
|
<span>[[modules:chat.no-users-in-room]]</span>
|
||||||
<!-- BEGIN rooms.users -->
|
<!-- ELSE -->
|
||||||
<li>
|
<!-- IF rooms.roomName -->{rooms.roomName}<!-- ELSE -->{rooms.usernames}<!-- ENDIF rooms.roomName -->
|
||||||
<a href="{config.relative_path}/user/{rooms.users.userslug}">
|
<!-- ENDIF !rooms.lastUser.uid -->
|
||||||
<!-- IF rooms.users.picture -->
|
</strong>
|
||||||
<img class="user-img avatar avatar-sm avatar-rounded" src="{rooms.users.picture}" title="{rooms.users.username}">
|
<div class="avatar-placeholder"></div>
|
||||||
<!-- ELSE -->
|
<!-- BEGIN rooms.users -->
|
||||||
<div class="user-img avatar avatar-sm avatar-rounded" title="{rooms.users.username}" style="background-color: {rooms.users.icon:bgColor};">{rooms.users.icon:text}</div>
|
<!-- IF @first -->
|
||||||
<!-- ENDIF rooms.users.picture -->
|
<div class="main-avatar">
|
||||||
</a>
|
<!-- IMPORT partials/chats/user.tpl -->
|
||||||
</li>
|
|
||||||
<!-- END rooms.users -->
|
|
||||||
<!-- IF !rooms.lastUser.uid -->
|
|
||||||
<li>[[modules:chat.no-users-in-room]]</li>
|
|
||||||
<!-- ENDIF !rooms.lastUser.uid -->
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- ENDIF @first -->
|
||||||
|
<!-- END rooms.users -->
|
||||||
|
|
||||||
|
<ul class="members">
|
||||||
|
<!-- BEGIN rooms.users -->
|
||||||
|
<li>
|
||||||
|
<!-- IMPORT partials/chats/user.tpl -->
|
||||||
|
</li>
|
||||||
|
<!-- END rooms.users -->
|
||||||
|
</ul>
|
||||||
|
|
||||||
<span class="teaser-content">{rooms.teaser.content}</span>
|
<span class="teaser-content">{rooms.teaser.content}</span>
|
||||||
<span class="teaser-timestamp timeago pull-right" title="{rooms.teaser.timestampISO}"></span>
|
<span class="teaser-timestamp timeago pull-right" title="{rooms.teaser.timestampISO}"></span>
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
<a href="{config.relative_path}/user/{rooms.users.userslug}">
|
||||||
|
<!-- IF rooms.users.picture -->
|
||||||
|
<img class="user-img avatar avatar-sm avatar-rounded" src="{rooms.users.picture}" title="{rooms.users.username}">
|
||||||
|
<!-- ELSE -->
|
||||||
|
<div class="user-img avatar avatar-sm avatar-rounded" title="{rooms.users.username}" style="background-color: {rooms.users.icon:bgColor};">{rooms.users.icon:text}</div>
|
||||||
|
<!-- ENDIF rooms.users.picture -->
|
||||||
|
</a>
|
Loading…
Reference in New Issue