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

View file

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