27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
<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>
|
||
*} |