1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-06 06:37:46 +00:00
Havana/tools/www-tpl/pt/quickmenu/friends_all.tpl
2025-02-24 08:11:19 -03:00

40 lines
No EOL
775 B
Smarty

{% if (onlineFriends|length == 0) and (offlineFriends|length == 0) %}
<ul id="quickmenu-friends">
<li class="odd">Nenhum amigo encontrado.</li>
</ul>
{% else %}
<ul id="online-friends">
{% set num = 0 %}
{% for friend in onlineFriends %}
{% if num % 2 == 0 %}
<li class="even">
{% else %}
<li class="odd">
{% endif %}
<a href="{{ site.sitePath }}/home/{{ friend.getUsername() }}">{{ friend.getUsername() }}</a>
</li>
{% set num = num + 1 %}
{% endfor %}
</ul>
<ul id="offline-friends">
{% for friend in offlineFriends %}
{% if num % 2 == 0 %}
<li class="even">
{% else %}
<li class="odd">
{% endif %}
<a href="{{ site.sitePath }}/home/{{ friend.getUsername() }}">{{ friend.getUsername() }}</a>
</li>
{% set num = num + 1 %}
{% endfor %}
</ul>
{% endif %}