mirror of
https://github.com/openvk/openvk
synced 2025-07-07 00:09:48 +03:00
Merge ddefa14881
into 4b7d2b9b17
This commit is contained in:
commit
7f2290b7f1
4 changed files with 22 additions and 1 deletions
|
@ -113,6 +113,7 @@ final class WallPresenter extends OpenVKPresenter
|
|||
"amount" => sizeof($this->template->posts),
|
||||
"perPage" => OPENVK_DEFAULT_PER_PAGE,
|
||||
];
|
||||
$this->template->ignore_status = $owner->isIgnoredBy($this->user->identity);
|
||||
|
||||
|
||||
$this->logPostsViewed($this->template->posts, $user);
|
||||
|
|
|
@ -57,7 +57,8 @@
|
|||
|
||||
<span n:if="$post->isPinned()" class="nobold">{_pinned}</span>
|
||||
|
||||
<a n:if="$canBeDeleted && !($forceNoDeleteLink ?? false) && $compact == false" class="delete" href="/wall{$post->getPrettyId()}/delete"></a>
|
||||
<a n:if="$canBeDeleted && !($forceNoDeleteLink ?? false) && $compact == false" class="delete" href="/wall{$post->getPrettyId()}/delete"></a>
|
||||
<a n:if="!$canBeDeleted" class="ignore" id="__ignoreSomeone" title="{if !$ignore_status}{_ignore_user}{else}{_unignore_user}{/if}" data-val='{!$ignore_status ? 1 : 0}' data-id="{$wallOwner->getId()}"></a>
|
||||
|
||||
{if $canBePinned && !($forceNoPinLink ?? false) && $compact == false}
|
||||
{if $post->isPinned()}
|
||||
|
|
|
@ -133,6 +133,10 @@
|
|||
|
||||
{if !($forceNoDeleteLink ?? false) && $canBeDeleted}
|
||||
<a href="/wall{$post->getPrettyId()}/delete">{_delete}</a> |
|
||||
{/if}
|
||||
|
||||
{if !$canBeDeleted}
|
||||
<a class="delete" id="__ignoreSomeone" data-val='{!$ignore_status ? 1 : 0}' data-id="{$wallOwner->getId()}">{if !$ignore_status}{_ignore_user}{else}{_unignore_user}{/if}</a> |
|
||||
{/if}
|
||||
|
||||
{if !($forceNoPinLink ?? false) && $canBePinned}
|
||||
|
|
|
@ -86,6 +86,21 @@
|
|||
background-color: rgb(240, 240, 240);
|
||||
}
|
||||
|
||||
.ignore {
|
||||
float: right;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
overflow: auto;
|
||||
background: url("/assets/packages/static/openvk/img/audios_controls.png") no-repeat 0 0;
|
||||
background-position: -51px -67px;
|
||||
opacity: 0.1;
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
|
||||
.ignore:hover {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.post-author .delete {
|
||||
float: right;
|
||||
height: 16px;
|
||||
|
|
Loading…
Reference in a new issue