Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Web/Presenters/WallPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public function renderWall(int $user, bool $embedded = false): void
"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);
Expand Down
3 changes: 2 additions & 1 deletion Web/Presenters/templates/components/post/microblogpost.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down
4 changes: 4 additions & 0 deletions Web/Presenters/templates/components/post/oldpost.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@

{if !($forceNoDeleteLink ?? false) && $canBeDeleted}
<a href="/wall{$post->getPrettyId()}/delete">{_delete}</a> &nbsp;|&nbsp;
{/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> &nbsp;|&nbsp;
{/if}

{if !($forceNoPinLink ?? false) && $canBePinned}
Expand Down
11 changes: 11 additions & 0 deletions Web/static/css/microblog.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@
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.2;
transition-duration: 0.3s;
}

.post-author .delete {
float: right;
height: 16px;
Expand Down