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

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

{{ user.rank.getTitle() }} {% if user.forums_username %} {{ _("Forums") }} {% endif %} {% if user.github_username %} {{ _("GitHub") }} {% endif %} {% if user.website_url %} {{ _("Website") }} {% endif %} {% if user.donate_url %} {{ _("Donate") }} {% endif %} {{ user.packages.count() }} {{ _("packages") }} {{ user.reviews | length }} {{ _("reviews") }} {{ user.replies.count() }} {{ _("comments") }}
{% 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 %}
{% if review_percent is not none and review_percent < 25 and review_idx >= 0 %}
{% if review_idx == 0 %} {% set badge_color = "gold" %} {% elif review_idx == 1 %} {% set badge_color = "#888" %} {% elif review_idx == 2 %} {% set badge_color = "#cd7f32" %} {% else %} {% set badge_color = "white" %} {% endif %}
{% if review_idx == 0 %}
{{ _("Most reviews", perc=review_percent) }}

{{ _("%(display_name)s has written the most reviews on ContentDB.", display_name=user.display_name) }}

{% elif review_idx <= 2 %}
{% if review_idx == 1 %} {{ _("2nd most reviews", perc=review_percent) }} {% else %} {{ _("3rd most reviews", perc=review_percent) }} {% endif %}

{{ _("This puts %(display_name)s in the top %(perc)s%%", display_name=user.display_name, perc=review_percent) }}

{% else %}
{{ _("Top %(perc)s%% reviewer", perc=review_percent) }}

{% if review_idx == 1 %} {{ _("Only 1 user has written more reviews.") }} {% else %} {{ _("Only %(place)d users have written more reviews.", place=review_idx) }} {% endif %}

{% endif %}
{% elif current_user == user %}
{{ _("Consider writing more reviews to get a badge.") }} {% if review_idx %} {{ _("You are in place %(place)s.", place=review_idx + 1) }} {% endif %}
{% endif %} {% if total_downloads >= 50000 %} {% if total_downloads >= 300000 %} {% set badge_color = "gold" %} {% elif total_downloads >= 100000 %} {% set badge_color = "#888" %} {% elif total_downloads >= 75000 %} {% set badge_color = "#cd7f32" %} {% else %} {% set badge_color = "white" %} {% endif %}
{% if total_downloads >= 300000 %} {{ _(">300k downloads") }} {% elif total_downloads >= 100000 %} {{ _(">100k downloads") }} {% elif total_downloads >= 75000 %} {{ _(">75k downloads") }} {% else %} {{ _(">50k downloads") }} {% endif %}

{{ _("Has received %(downloads)d downloads across all packages.", display_name=user.display_name, downloads=total_downloads) }}

{% endif %}
{% endif %} {% if current_user == user or user.checkPerm(current_user, "CHANGE_AUTHOR") %} Create package {% endif %} {% if current_user == user or (current_user.is_authenticated and current_user.rank.atLeast(current_user.rank.EDITOR)) %} View list of tags {% endif %}

{{ _("Packages") }}

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

{{ _("Reviews") }}

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