1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/widgets/Groups/_groups_subscriptions.tpl
2015-12-15 11:54:49 +01:00

37 lines
1.4 KiB
Smarty

{if="$subscriptions == null"}
<ul class="thick">
<div class="placeholder icon bookmark">
<h1>{$c->__('groups.empty_title')}</h1>
<h4>{$c->__('groups.empty_text1')}</h4>
<h4>{$c->__('groups.empty_text2')}</h4>
</li>
</ul>
{else}
<ul class="divided spaced middle active">
{loop="$subscriptions"}
{if="$c->checkNewServer($value)"}
<li class="subheader">
<a href="#" onclick="Groups_ajaxDisco('{$value->server}')">{$value->server} - {$value->servicename}</a>
</li>
{/if}
<li
{if="$value->description"}class="condensed"{/if}
data-server="{$value->server}"
data-node="{$value->node}"
title="{$value->server} - {$value->node}"
>
<span class="icon bubble color {$value->node|stringToColor}">{$value->node|firstLetterCapitalize}</span>
<span>
{if="$value->name"}
{$value->name}
{else}
{$value->node}
{/if}
</span>
{if="$value->description"}
<p class="wrap">{$value->description|strip_tags}</p>
{/if}
</li>
{/loop}
</ul>
{/if}