2021-04-28 20:10:26 +02:00

49 lines
1.8 KiB
Smarty

{*
/*************************************
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
* SPDX-License-Identifier: AGPL-3.0-only
************************************/
*}
{* crmv@140887 *}
<input type="hidden" id="{$UIKEY}_unseen_ids" value="{','|implode:$UNSEEN_IDS}" />
<input type="hidden" id="{$UIKEY}_max_number_of_news" value="{$CRITERIA}" />
{assign var="INDICATOR" value="document.getElementById('indicator"|cat:$UIKEY|cat:"')"}
{if !empty($COMMENTS)}
<table class="small" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="right">
<input type="button" class="crmbutton small edit" value="{'LBL_SET_ALL_AS_READ'|getTranslatedString:'ModNotifications'}" onclick="ModNotificationsCommon.markAllAsRead()" title="{'LBL_SET_ALL_AS_READ'|getTranslatedString:'ModNotifications'}" />
</td>
</tr>
<tr>
<td>
<div id="contentwrap_{$UIKEY}" style="width: 100%;">
{foreach item=COMMENTMODEL from=$COMMENTS}
{include file="modules/ModNotifications/widgets/DetailViewBlockCommentItem.tpl" COMMENTMODEL=$COMMENTMODEL}
{/foreach}
</div>
</td>
</tr>
{if $TOTAL > $CRITERIA}
<tr>
<td class="ModCommAnswerBox" align="center" style="padding: 3px 0px;">
(1-{$CRITERIA} {'LBL_OF'|getTranslatedString:'Settings'} {$TOTAL})&nbsp;<a href="javascript:ModNotificationsCommon.loadModNotifications({$CRITERIA}+eval(ModNotificationsCommon.default_number_of_news),'{$smarty.request.target_frame}','{$smarty.request.indicator}');">{'LBL_SHOW_OTHER_NOTIFICATIONS'|getTranslatedString:'ModNotifications'}</a>
</td>
</tr>
{/if}
</table>
{else}
<div class="vte-collection-empty">
<div class="collection-item">
<div class="circle">
<i class="vteicon nohover">language</i>
</div>
<h4 class="title">{"LBL_NO_NOTIFICATIONS"|getTranslatedString}</h4>
</div>
</div>
{/if}