{% import "macros.html" as macros %} {% macro user_card(user_id, user, score, score_approx, is_spam) %}
{{ score | round(precision=2) }}
{{ user.login }}
{%- if user.full_name %}
({{ user.full_name }})
{% endif -%}
{%- if user.description %}
[D] {{ user.description }}
{% endif -%} {%- if user.repos | length > 0 %}
Repositories:
{% for repo in user.repos %}
{{ macros::compact(name=repo[1].name, desc=repo[1].description) }}
{% endfor %}
{% endif -%} {%- if user.issues | length > 0 %}
Issues:
{% for issue in user.issues %}
{{ macros::compact(name=issue[1].title, desc=issue[1].body) }}
{% endfor %}
{% endif -%}
{% endmacro user_card %}