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_server.tpl

43 lines
1.4 KiB
Smarty
Raw Normal View History

<ul class="middle divided spaced active">
{loop="$nodes"}
<li
class="
{if="$value->subscription == 'subscribed'"}action{/if}
condensed
"
data-server="{$value->server}"
data-node="{$value->node}"
title="{$value->server} - {$value->node}"
>
{if="$value->subscription == 'subscribed'"}
<div class="action">
<i class="zmdi zmdi-bookmark"></i>
</div>
{/if}
<span class="icon bubble color {$value->node|stringToColor}">{$value->node|firstLetterCapitalize}</span>
<span>
{if="$value->name"}
{$value->name}
{else}
{$value->node}
{/if}
{if="$value->description"}
<span class="second">
{$value->description|strip_tags}
</span>
{/if}
</span>
<p class="wrap">
{if="$value->sub > 0"}
{$c->__('groups.sub', $value->sub)} -
{/if}
{$c->__('groups.num', $value->num)}
</p>
</li>
{/loop}
</ul>
<a onclick="Groups_ajaxTestAdd('{$server}')" class="button action color">
<i class="zmdi zmdi-plus"></i>
</a>