feat(FeedReports): Report button with icon added to microblog

This commit is contained in:
xRy0 2025-05-21 23:07:24 +03:00
parent ca20e652a6
commit 43b4e38b3a
No known key found for this signature in database
GPG key ID: 0DD2B72E974C9E3B
3 changed files with 15 additions and 0 deletions

View file

@ -58,6 +58,7 @@
<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>
{if $canBePinned && !($forceNoPinLink ?? false) && $compact == false} {if $canBePinned && !($forceNoPinLink ?? false) && $compact == false}
{if $post->isPinned()} {if $post->isPinned()}

View file

@ -86,6 +86,20 @@
background-color: rgb(240, 240, 240); background-color: rgb(240, 240, 240);
} }
.report {
float: right;
height: 16px;
width: 16px;
overflow: auto;
background: url("/assets/packages/static/openvk/img/report.png") no-repeat 0 0;
opacity: 0.1;
transition-duration: 0.3s;
}
.report:hover {
opacity: 0.4;
}
.post-author .delete { .post-author .delete {
float: right; float: right;
height: 16px; height: 16px;

BIN
Web/static/img/report.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B