mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Support: Display the number of unanswered tickets in the left menu
This commit is contained in:
parent
d9c04d1428
commit
7f4dabef4b
2 changed files with 7 additions and 1 deletions
|
@ -208,6 +208,8 @@ abstract class OpenVKPresenter extends SimplePresenter
|
|||
}
|
||||
|
||||
$this->template->ticketAnsweredCount = (new Tickets)->getTicketsCountByuId($this->user->id, 1);
|
||||
if($user->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0))
|
||||
$this->template->helpdeskTicketAnsweredCount = (new Tickets)->getTicketCount(0);
|
||||
}
|
||||
|
||||
setlocale(LC_TIME, ...(explode(";", tr("__locale"))));
|
||||
|
|
|
@ -172,7 +172,11 @@
|
|||
<a href="/admin" class="link">Админ-панель</a>
|
||||
{/if}
|
||||
{if $canAccessHelpdesk}
|
||||
<a href="/support/tickets" class="link">Helpdesk</a>
|
||||
<a href="/support/tickets" class="link">Helpdesk
|
||||
{if $helpdeskTicketAnsweredCount > 0}
|
||||
(<b>{$helpdeskTicketAnsweredCount}</b>)
|
||||
{/if}
|
||||
</a>
|
||||
{/if}
|
||||
<a
|
||||
n:foreach="OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links'] as $menuItem"
|
||||
|
|
Loading…
Reference in a new issue