Support: Make the behavior when the user has no tickets more friendly

Specifically, do not display a link to the list and display a message in the list instead of nothing if there are no tickets. Closes #394
This commit is contained in:
Maxim Leshchenko 2022-01-07 02:14:31 +02:00
parent 9feea4302a
commit b46552663d
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -15,7 +15,7 @@
<div n:attr="id => ($isMain ? 'activetabs' : 'ki')" class="tab">
<a n:attr="id => ($isMain ? 'act_tab_a' : 'ki')" href="/support">{_support_faq}</a>
</div>
<div n:attr="id => ($isList ? 'activetabs' : 'ki')" class="tab">
<div n:if="$count > 0" n:attr="id => ($isList ? 'activetabs' : 'ki')" class="tab">
<a n:attr="id => ($isList ? 'act_tab_a' : 'ki')" href="/support?act=list">{_support_list}</a>
</div>
<div n:attr="id => ($isNew ? 'activetabs' : 'ki')" class="tab">
@ -70,6 +70,10 @@
</tbody>
</table>
{if $count < 1}
{include "../components/nothing.xml"}
{/if}
<div style="padding: 8px;">
{include "../components/paginator.xml", conf => (object) [
"page" => $page,