Wall: Added a Pinned string to Post (microblog style)

This commit is contained in:
veselcraft 2021-11-28 03:22:59 +03:00
parent a88b79022e
commit 7778dd7d38
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E
2 changed files with 6 additions and 10 deletions

View file

@ -23,15 +23,13 @@
{if $author->isVerified()}<img class="name-checkmark" src="/assets/packages/static/openvk/img/checkmark.png">{/if}
{ifset $compact}<br>
<a href="/wall{$post->getPrettyId()}" class="date">
{if $post->isPinned()}
{$post->getPublicationTime()},
{_pinned}
{else}
{$post->getPublicationTime()}
{/if}
{$post->getPublicationTime()}
</a>
{/ifset}
{if $post->isPinned()}
<span class="nobold">{_pinned}</span>
{/if}
{if $post->canBeDeletedBy($thisUser) && !($forceNoDeleteLink ?? false) && !isset($compact)}
<a class="delete" href="/wall{$post->getPrettyId()}/delete"></a>
{/if}

View file

@ -40,11 +40,9 @@
{/if}
<br/>
<a href="/wall{$post->getPrettyId()}" class="date">
{$post->getPublicationTime()}
{if $post->isPinned()}
{$post->getPublicationTime()},
{_pinned}
{else}
{$post->getPublicationTime()}
, {_pinned}
{/if}
</a>
</div>