Compare commits

...

16 commits

7 changed files with 52 additions and 0 deletions

View file

@ -200,6 +200,7 @@ final class WallPresenter extends OpenVKPresenter
foreach ($posts->page((int) ($_GET["p"] ?? 1), $perPage) as $post) { foreach ($posts->page((int) ($_GET["p"] ?? 1), $perPage) as $post) {
$this->template->posts[] = $this->posts->get($post->id); $this->template->posts[] = $this->posts->get($post->id);
} }
$this->template->feedIgnoreButton = true;
} }
public function renderGlobalFeed(): void public function renderGlobalFeed(): void
@ -240,6 +241,7 @@ final class WallPresenter extends OpenVKPresenter
foreach ($posts as $post) { foreach ($posts as $post) {
$this->template->posts[] = $this->posts->get($post->id); $this->template->posts[] = $this->posts->get($post->id);
} }
$this->template->feedIgnoreButton = true;
} }
public function renderHashtagFeed(string $hashtag): void public function renderHashtagFeed(string $hashtag): void

View file

@ -58,8 +58,11 @@
<span n:if="$post->isPinned()" class="nobold">{_pinned}</span> <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="report" title="{_report}" href="javascript:reportPost({$post->getId()})"></a> <a n:if="!$canBeDeleted" class="report" title="{_report}" href="javascript:reportPost({$post->getId()})"></a>
<a n:if="$feedIgnoreButton && !$canBeDeleted" class="delete" id="__ignoreSomeoneFeed" title="{_feed_ignore}" data-val='1' data-id="{$wallOwner->getRealId()}"></a>
{if $canBePinned && !($forceNoPinLink ?? false) && $compact == false} {if $canBePinned && !($forceNoPinLink ?? false) && $compact == false}
{if $post->isPinned()} {if $post->isPinned()}
<a class="pin" href="/wall{$post->getPrettyId()}/pin?act=unpin&hash={rawurlencode($csrfToken)}"></a> <a class="pin" href="/wall{$post->getPrettyId()}/pin?act=unpin&hash={rawurlencode($csrfToken)}"></a>

View file

@ -918,6 +918,15 @@ h4 {
} }
} }
.post-hidden {
display: none;
}
.ignore-message {
padding: 5px 0;
}
.small-textarea { .small-textarea {
height: 24px; height: 24px;
} }

View file

@ -86,6 +86,16 @@
background-color: rgb(240, 240, 240); background-color: rgb(240, 240, 240);
} }
.ignore {
float: right;
height: 16px;
width: 16px;
overflow: auto;
background: url("/assets/packages/static/openvk/img/ignore.png") no-repeat 0 0;
opacity: 0.1;
transition-duration: 0.3s;
}
.report { .report {
float: right; float: right;
height: 16px; height: 16px;
@ -96,6 +106,19 @@
transition-duration: 0.3s; transition-duration: 0.3s;
} }
.ignore:hover {
opacity: 0.4;
}
.post-hidden {
display: none;
}
.ignore-message {
padding: 5px 0;
border-bottom: 1px #ddd solid;
}
.report:hover { .report:hover {
opacity: 0.4; opacity: 0.4;
} }

View file

@ -359,6 +359,11 @@
"subscriptions_one" = "$1 subscription"; "subscriptions_one" = "$1 subscription";
"subscriptions_other" = "$1 subscriptions"; "subscriptions_other" = "$1 subscriptions";
"feed_user_ignored" = "User will no longer appear in the feed.";
"feed_club_ignored" = "Club will no longer appear in the feed.";
"feed_unignore" = "Restore.";
"feed_ignore" = "Not interested";
/* Group */ /* Group */
"group" = "Group"; "group" = "Group";

View file

@ -290,6 +290,11 @@
"change_geo_name" = "Изменить название точки"; "change_geo_name" = "Изменить название точки";
"change_geo_name_new" = "Новое название"; "change_geo_name_new" = "Новое название";
"feed_user_ignored" = "Пользователь больше не будет появляться в ленте.";
"feed_club_ignored" = "Группа больше не будет появляться в ленте.";
"feed_unignore" = "Вернуть.";
"feed_ignore" = "Не интересно";
/* Friends */ /* Friends */
"friends" = "Друзья"; "friends" = "Друзья";

View file

@ -280,6 +280,11 @@
"change_geo_name" = "Змінити назву розташування"; "change_geo_name" = "Змінити назву розташування";
"change_geo_name_new" = "Нова назва"; "change_geo_name_new" = "Нова назва";
"feed_user_ignored" = "Користувач більше не з'являтиметься у стрічці.";
"feed_club_ignored" = "Спiльнота більше не з'являтиметься у стрічці.";
"feed_unignore" = "Повернути.";
"feed_ignore" = "Не цікаво";
/* Friends */ /* Friends */
"friends" = "Друзі"; "friends" = "Друзі";