Reports: Change the routes

This commit is contained in:
Ilya Prokopenko 2022-01-27 15:49:39 +03:00
parent 35b70268a8
commit ffb3712429
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56
5 changed files with 8 additions and 8 deletions

View file

@ -106,6 +106,6 @@ final class ReportPresenter extends OpenVKPresenter
$report->setDeleted();
$this->flash("suc", "Нехай живе!", "Жалоба проигнорирована.");
}
$this->redirect("/admin/reports");
$this->redirect("/support/reports");
}
}

View file

@ -175,7 +175,7 @@
(<b>{$helpdeskTicketNotAnsweredCount}</b>)
{/if}
</a>
<a href="/admin/reports" class="link" n:if="$canAccessHelpdesk">Reports</a>
<a href="/support/reports" class="link" n:if="$canAccessHelpdesk">Reports</a>
<a n:if="$thisUser->getLeftMenuItemStatus('links')" n:foreach="OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links'] as $menuItem" href="{$menuItem['url']}" target="_blank" class="link">{strpos($menuItem["name"], "@") === 0 ? tr(substr($menuItem["name"], 1)) : $menuItem["name"]}</a>

View file

@ -15,7 +15,7 @@
{* BEGIN ELEMENTS DESCRIPTION *}
{block link|strip|stripHtml}
/admin/report{$x->getId()}
/support/report{$x->getId()}
{/block}
{block preview}

View file

@ -3,7 +3,7 @@
{block title}{$report->getReason()}{/block}
{block header}
<a href="/admin/reports">{_list_of_reports}</a>
<a href="/support/reports">{_list_of_reports}</a>
»
{_report_number}{$report->getId()}
{/block}
@ -12,7 +12,7 @@
<p><b>{_comment}: </b>{$report->getReason()}</p>
{include "../components/post/oldpost.xml", post => $report->getContentObject(), forceNoDeleteLink => TRUE, forceNoShareLink => TRUE, forceNoLike => TRUE}
<center>
<form action="/admin/reportAction{$report->getId()}" method="post">
<form action="/support/reportAction{$report->getId()}" method="post">
<input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" name="ban" value="{_ban_user_action}" class="button">
<input type="submit" name="delete" value="{_delete}" class="button">

View file

@ -259,11 +259,11 @@ routes:
handler: "Admin->quickBan"
- url: "/admin/warn/{num}"
handler: "Admin->quickWarn"
- url: "/admin/reports"
- url: "/support/reports"
handler: "Report->list"
- url: "/admin/report{num}"
- url: "/support/report{num}"
handler: "Report->view"
- url: "/admin/reportAction{num}"
- url: "/support/reportAction{num}"
handler: "Report->action"
- url: "/report/{num}"
handler: "Report->create"