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

40 lines
773 B
Smarty
Raw Normal View History

2022-09-03 15:05:14 +10:00
{% 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 %}