{% import 'macros.html.twig' as macro %}
{% for member in amateurs|default([]) %}
<div class="{{ classNames|default(['col-12', 'col-sm-6', 'col-lg-3', 'ml-0 pl-0'])|join(' ') }}">
<div class="card border-0 profile">
{% if isMemberOnline(member) %}
{% if isWebcamOnline(member)|default(false) %}
<a href="{{ livecamUri(member.username) }}"
class="badge btn btn-action bg-action text-white is-online-livecam-marker rounded-top d-block text-center"
style="border-bottom-right-radius: 0; border-bottom-left-radius: 0;"
target="_blank"
{% include '_widgets/_livecam_tooltip_attributes.html.twig' with {'username': member.username} %}
>
<i class="fas fa-video position-relative"></i>
<span class="ml-2">Live-Cam</span>
</a>
{% else %}
<span class="badge bg-action text-white rounded-top d-block text-center" style="border-bottom-right-radius: 0; border-bottom-left-radius: 0;">
<span class="ml-2">Online</span>
</span>
{% endif %}
{% endif %}
{{ macro.profileImage(member, constant('\\App\\Dictionary\\ImageVars::SIZE_500x375'), true, false, ['card-img-top']) }}
<div class="card-body px-2 py-2 rounded-bottom">
<h6 class="card-title mb-1 pb-0">
<a href="{{ profileUri(member.username) }}" class="text-white d-block text-truncate frivol-xhr">
{{ member.username }}{% if member.age|default(-1) > 17 %},
{{ member.age|default('') }}
{% endif %}
</a>
</h6>
</div>
</div>
</div>
{% endfor %}