Posts: Added online status under the avatar

Closes #237
This commit is contained in:
Ilya Prokopenko 2021-10-15 18:17:34 +03:00
parent ad878474ce
commit 2feaee4be4
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56
3 changed files with 22 additions and 0 deletions

View file

@ -7,6 +7,13 @@
<img <img
src="{$author->getAvatarURL()}" src="{$author->getAvatarURL()}"
width="{ifset $compact}25{else}50{/ifset}" /> width="{ifset $compact}25{else}50{/ifset}" />
{if !$post->isPostedOnBehalfOfGroup() && !$compact}
<span n:if="$author->getOnline()->timestamp() + 2505600 > time()" class="post-online">
{if $diff->i <= 5}
{_online}
{/if}
</span>
{/if}
</td> </td>
<td width="100%" valign="top"> <td width="100%" valign="top">
<div class="post-author"> <div class="post-author">

View file

@ -7,6 +7,13 @@
<img <img
src="{$author->getAvatarURL()}" src="{$author->getAvatarURL()}"
width="50" /> width="50" />
{if !$post->isPostedOnBehalfOfGroup() && !$compact}
<span n:if="$author->getOnline()->timestamp() + 2505600 > time()" class="post-online">
{if $diff->i <= 5}
{_online}
{/if}
</span>
{/if}
</td> </td>
<td width="100%" valign="top"> <td width="100%" valign="top">
<div class="post-author"> <div class="post-author">

View file

@ -481,6 +481,14 @@ h4 {
display: block; display: block;
} }
.post-online {
color: #AAA;
text-align: center;
width: 50px;
padding-top: 5px;
display: block;
}
.post-author { .post-author {
background-color: #F6F6F6; background-color: #F6F6F6;
border-top: #8B8B8B solid 1px; border-top: #8B8B8B solid 1px;