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/Pods/pods.tpl

41 lines
1.3 KiB
Smarty
Raw Normal View History

{if="isset($pods)"}
<ul class="flex simple thick card">
{loop="$pods->pods"}
<li class="block condensed">
<span class="info">{$value->connected} / {$value->population}</span>
<span>
{if="$value->favorite"}
<i class="zmdi zmdi-star-border"></i>
{/if}
<a href="{$value->url}" target="_blank">
{function="parse_url($value->url, PHP_URL_HOST)"}
</a>
</span>
<p>{$value->description}</p>
<span class="info">
{$value->version}
</span>
<p>
<img
title="{$value->geo_country}"
alt="{$value->geo_country}"
src="{$c->flagPath($value->geo_country)}"/>
<span>{$c->countryName($value->geo_country)}</span>
{if="$value->geo_city != ''"}
• <span>{$value->geo_city}</span>
{/if}
</p>
</li>
{/loop}
</ul>
{else}
<ul class="thick">
<li>
<span class="icon bubble color gray">
<i class="zmdi zmdi-cloud-off"></i>
</span>
<span>{$c->__('api.error')}</span>
</li>
</ul>
{/if}