mirror of
https://github.com/openvk/openvk
synced 2025-03-14 21:45:22 +03:00
Reports: Change the routes
This commit is contained in:
parent
35b70268a8
commit
ffb3712429
5 changed files with 8 additions and 8 deletions
|
@ -106,6 +106,6 @@ final class ReportPresenter extends OpenVKPresenter
|
|||
$report->setDeleted();
|
||||
$this->flash("suc", "Нехай живе!", "Жалоба проигнорирована.");
|
||||
}
|
||||
$this->redirect("/admin/reports");
|
||||
$this->redirect("/support/reports");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
{* BEGIN ELEMENTS DESCRIPTION *}
|
||||
|
||||
{block link|strip|stripHtml}
|
||||
/admin/report{$x->getId()}
|
||||
/support/report{$x->getId()}
|
||||
{/block}
|
||||
|
||||
{block preview}
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue