mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Fixup "Support: Display the number of unanswered tickets in the left menu"
Excuse me :3
This commit is contained in:
parent
98f8819c17
commit
8fd09a7846
2 changed files with 3 additions and 3 deletions
|
@ -208,8 +208,8 @@ abstract class OpenVKPresenter extends SimplePresenter
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->template->ticketAnsweredCount = (new Tickets)->getTicketsCountByuId($this->user->id, 1);
|
$this->template->ticketAnsweredCount = (new Tickets)->getTicketsCountByuId($this->user->id, 1);
|
||||||
if($user->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0))
|
if($user->can("write")->model("openvk\Web\Models\Entities\TicketReply")->whichBelongsTo(0))
|
||||||
$this->template->helpdeskTicketAnsweredCount = (new Tickets)->getTicketCount(0);
|
$this->template->helpdeskTicketNotAnsweredCount = (new Tickets)->getTicketCount(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
setlocale(LC_TIME, ...(explode(";", tr("__locale"))));
|
setlocale(LC_TIME, ...(explode(";", tr("__locale"))));
|
||||||
|
|
|
@ -174,7 +174,7 @@
|
||||||
{if $canAccessHelpdesk}
|
{if $canAccessHelpdesk}
|
||||||
<a href="/support/tickets" class="link">Helpdesk
|
<a href="/support/tickets" class="link">Helpdesk
|
||||||
{if $helpdeskTicketAnsweredCount > 0}
|
{if $helpdeskTicketAnsweredCount > 0}
|
||||||
(<b>{$helpdeskTicketAnsweredCount}</b>)
|
(<b>{$helpdeskTicketNotAnsweredCount}</b>)
|
||||||
{/if}
|
{/if}
|
||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in a new issue