1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-04 05:37:47 +00:00
Havana/tools/www-tpl/default-en/quickmenu/friends_all.tpl
2022-09-04 10:33:18 +10:00

40 lines
No EOL
773 B
Smarty

{% if (onlineFriends|length == 0) and (offlineFriends|length == 0) %}
<ul id="quickmenu-friends">
<li class="odd">No friends were found.</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 %}