EIOS/tpl/tpl_notification_item.html

27 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2023-12-28 15:39:22 +03:00
<a href="/pm/" >
<i class="icon-envelope-alt" style="font-size: 26px;"></i>
{if $user.pm_new>0}<span class="badge badge-important" style="top:6px;">!</span>{/if}
{*<span class="badge badge-important">!</span>*}
</a>
{*//старая версия лички
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-envelope-alt"></i>
{if $user.pm_new!=0}<span class="badge badge-important">{$user.pm_new}</span>{/if}
</a>
<ul class="dropdown-menu extended inbox">
<li>{if $user.pm_new!=0}<p>У Вас {$user.pm_new} новых сообщений</p>{else}<p>У Вас {$user.pm_kol} сообщений</p>{/if}</li>
{foreach from=$user.pm item=up}
<li>
<a href="/pm/answer/{$up.id}/">
{if $up.from.foto!=""}<span class="photo"><img src="/upload/users/ava/{$up.from.foto}" alt="avatar" /></span>{/if}
<span class="subject">
<span class="from">{$up.from.fio}</span>
<span class="time">{$up.data}</span>
</span>
<span class="message">{$up.message|truncate}</span>
</a>
</li>
{/foreach}
<li><a href="/pm/">Просмотреть все сообщения</a></li>
</ul>
*}