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

40 lines
1.5 KiB
Smarty
Raw Normal View History

{if="$subscriptions == null"}
<ul class="thick">
2015-12-15 11:54:49 +01:00
<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}
2015-12-21 22:59:03 +01:00
<ul class="list divided spaced middle active all">
{loop="$subscriptions"}
{if="$c->checkNewServer($value)"}
2015-12-21 22:59:03 +01:00
<li class="subheader" onclick="Groups_ajaxDisco('{$value->server}')">
<span class="control icon gray"><i class="zmdi zmdi-chevron-right"></i></span>
<p>
{$value->server} - {$value->servicename}
</p>
</li>
{/if}
<li
data-server="{$value->server}"
data-node="{$value->node}"
title="{$value->server} - {$value->node}"
>
2015-12-21 22:59:03 +01:00
<span class="primary icon bubble color {$value->node|stringToColor}">{$value->node|firstLetterCapitalize}</span>
<p class="line normal">
{if="$value->name"}
{$value->name}
{else}
{$value->node}
{/if}
2015-12-21 22:59:03 +01:00
</p>
{if="$value->description"}
2015-12-21 22:59:03 +01:00
<p class="line">{$value->description|strip_tags}</p>
{/if}
</li>
{/loop}
</ul>
{/if}