{% extends "base.html" %} {% block title %} {{ user.username }} {% endblock %} {% block headextra %} {% endblock %} {% block content %}
{{ _('Profile picture') }}
{% if user.can_see_edit_profile(current_user) %} {{ _("Edit Profile") }} {{ _("To Do List") }} {% endif %} {{ _("Report") }} {% if current_user.is_authenticated and current_user.rank.at_least(current_user.rank.MODERATOR) %} {% if not user.rank.at_least(current_user.rank) %} {{ _("Moderator Tools") }} {% endif %} {% if user.email %} {{ _("Send Email") }} {% endif %} {% endif %}

{{ user.display_name }} {% if user.username != user.display_name %} ({{ user.username }}) {% endif %}

{{ user.rank.get_title() }} {% if user.forums_username %} {{ _("Forums") }} {% endif %} {% if user.github_username %} {{ _("GitHub") }} {% endif %} {% if user.website_url %} {{ _("Website") }} {% endif %} {% if user.donate_url %} {{ _("Donate") }} {% endif %} {% set package_count = user.packages.filter_by(state='APPROVED').count() %} {{ package_count }} {{ _("packages") }} {% set collection_count = user.collections.filter_by(private=False).count() %} {{ collection_count }} {{ _("collections") }} {% set num_reviews = user.reviews | length %} {{ num_reviews }} {{ _("reviews") }} {{ user.replies.count() }} {{ _("comments") }} {% if package_count %} {{ _("Statistics") }} {% endif %}
{% if not current_user.is_authenticated and user.rank == user.rank.NOT_JOINED and user.forums_username %}
{{ _("Claim") }} {{ _("Is this you? Claim your account now!") }}
{% else %}
{% for medal in medals_unlocked %}
{{ medal.title }}

{{ medal.description }}

{% endfor %} {% if current_user == user or (current_user.is_authenticated and current_user.rank.at_least(current_user.rank.ADMIN)) %} {% for medal in medals_locked %} {% set value = medal.progress[0] %} {% set target = medal.progress[1] %}

{{ medal.description }}

{% if value >= target * 0.2 %} {{ _("%(value)d / %(target)d", value=value, target=target) }} {% endif %}
{% if value < target * 0.2 %}
{{ _("%(value)d / %(target)d", value=medal.progress[0], target=medal.progress[1]) }}
{% endif %}
{% endfor %} {% endif %}
{% endif %}
{% if packages %}
{{ _("Alphabetical") }} {{ _("Downloads") }} {{ _("Newest") }}
{% if current_user == user or (current_user.is_authenticated and current_user.rank.at_least(current_user.rank.EDITOR)) %} {{ _("View list of tags") }} {% endif %} {% endif %} {% if current_user == user or user.check_perm(current_user, "CHANGE_AUTHOR") %} {{ _("Create package") }} {% endif %}

{{ _("Packages") }}

{% from "macros/packagegridtile.html" import render_pkggrid %} {{ render_pkggrid(packages, show_author=False) }} {% if maintained_packages %}

{{ _("Maintained Packages") }}

{{ _("This user is also a maintainer of the following packages") }}

{{ render_pkggrid(maintained_packages) }} {% endif %}

{{ _("Reviews") }}

{% from "macros/reviews.html" import render_reviews with context %} {{ render_reviews(user.reviews, current_user, True) }} {% endblock %}