{% extends "base.html" %} {% set display_name = profile.name | default(profile.user.username, true) %} {% set username = profile.user.username %} {% block body_attributes %}{% endblock %} {% block bodyclass %}profile profile-display{% endblock %} {% block title %}{{ page_title(profile.user) }}{% endblock %} {% block site_css %} {{ super() }} {{ css('demostudio') }} {{ css('jquery-ui') }} {{ css('profile') }} {% endblock %} {% block site_js %} {{ super() }} {{ js('demostudio') }} {% endblock %} {% block content %}
{{ profile.user.username }}

{{ profile.user.username }} {% if profile.fullname %}({{ profile.fullname }}){% endif %}

{% if show_manage_roles_button %} {# TODO: Need a method to detect whether the logged in user can manage any roles, here #} {{_("Manage Roles")}} {% endif %} {{ ban_link(profile.user, request.user) }} {% if profile.allows_editing_by(request.user) and request.user == profile.user %} {{_("Edit")}} {% endif %}
{% if profile.title or profile.organization or profile.location or profile.irc_nickname %}
    {% if profile.title %}
  • {{ profile.title }}
  • {% endif %} {% if profile.organization %}
  • {{ profile.organization }}
  • {% endif %} {% if profile.location %}
  • {{ profile.location }}
  • {% endif %} {% if profile.irc_nickname %}
  • IRC: {{ profile.irc_nickname }}
  • {% endif %}
{% endif %}

{{ profile.bio | nl2br }}

{% set tag_ns = 'profile:interest:' %} {% set tags = profile.tags.all_ns(tag_ns) %} {% if tags | length %}

{{_("Interests")}}

    {% for tag in tags%}
  • {% endfor %}
{% endif %} {% set tag_ns = 'profile:expertise:' %} {% set tags = profile.tags.all_ns(tag_ns) %} {% if tags | length %}

{{_("Areas of Expertise")}}

    {% for tag in tags%}
  • {% endfor %}
{% endif %}
{{ _('Member since {date}') | f(date=profile.user.date_joined.strftime('%B %d, %Y')) }}
{% if waffle.flag('badger') and award_list %}

{{_("Recent Badge Awards")}}

{% include "badger/includes/awards_as_badges_list.html" %}
{% endif %} {% if demos_page.object_list|length %}
{{ submission_listing( request, demos_page.object_list, demos_page.has_other_pages(), demos_paginator, demos_page, _("Subscribe to a feed of {display_name}'s demos") | f(display_name=display_name), url('demos_feed_profile', format='atom', username=username), cols_per_row=4, show_submit=True ) }}
{% elif profile.user == request.user %}

{% trans submit_url=url('demos.views.submit') %}You haven't submitted any web technology demos. Build something awesome and submit a demo!{% endtrans %}

{% endif %}

{{_("Recent Docs Activity")}}

{% if wiki_activity and wiki_activity|length %} {% for rev in wiki_activity %} {# TODO: auto-generate smart comment like "N words changed." #} {% endfor %} {# TODO: create user revision activity feed #}
{{_("Page")}} {{_("Date")}} {{_("Comment")}}

{{ rev.document.title }}

{{ rev.created.strftime('%B %d, %Y') }}
{{ rev.created.strftime('%I:%M %p') }}
{{ format_comment(rev) }}
{{_("Feed")}}

{{ _('View all activity') }}

{% else %} {% if profile.user == request.user %} {% trans docs_url=devmo_url('Project:MDN/Contributing/Creating_and_editing_pages') %}

You haven't contributed to any MDN docs. Pitch in!

{% endtrans %} {% else %}

{{ _('This user has no activity.') }}

{% endif %} {% endif %}
{% endblock %}