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

55 lines
2 KiB
Smarty
Raw Normal View History

2015-12-21 22:59:03 +01:00
<ul class="list middle divided spaced active all">
<li class="subheader" onclick="Groups_ajaxSubscriptions()">
<span class="primary icon"><i class="zmdi zmdi-arrow-back"></i></span>
<p class="normal"><span class="info">{$nodes|count}</span>{$server}</p>
</li>
{loop="$nodes"}
<li
class="
{if="$value->subscription == 'subscribed'"}action{/if}
{if="$value->sub > 0 || $value->num > 0"}condensed{/if}
"
data-server="{$value->server}"
data-node="{$value->node}"
title="{$value->server} - {$value->node}"
>
{if="$value->subscription == 'subscribed'"}
2015-12-21 22:59:03 +01:00
<span class="control icon gray">
<i class="zmdi zmdi-bookmark"></i>
2015-12-21 22:59:03 +01:00
</span>
{/if}
2015-12-21 22:59:03 +01:00
<span class="primary icon bubble color {$value->node|stringToColor}">{$value->node|firstLetterCapitalize}</span>
<p class="line">
{if="$value->name"}
{$value->name}
{else}
{$value->node}
{/if}
<span class="second">
2015-12-21 22:59:03 +01:00
{if="$value->description"}
{$value->description|strip_tags}
{/if}
</span>
2015-12-21 22:59:03 +01:00
</p>
<p>
{if="isset($value->sub)"}
{if="$value->sub > 0"}
{$c->__('groups.sub', $value->sub)}
{/if}
{if="$value->sub > 0 && $value->num > 0"}
-
{/if}
{if="$value->num > 0"}
{$c->__('groups.num', $value->num)}
{/if}
{else}
{$value->node}
{/if}
</p>
</li>
{/loop}
</ul>
<a onclick="Groups_ajaxTestAdd('{$server}')" class="button action color">
<i class="zmdi zmdi-plus"></i>
</a>