{% extends "base.html" %} {% set display_name = profile.name | default(profile.user.username, true) %} {% set username = profile.user.username %} {% block pageid %}{% endblock %} {% block bodyclass %}profile{% endblock %} {% block title %}{{ page_title(profile.user) }}{% endblock %} {% block site_css %} {{ super() }} {{ css('demostudio') }} {% if waffle.flag('redesign') %}{{ css('redesign-profile') }}{% endif %} {% endblock %} {% block site_js %} {{ super() }} {{ js('demostudio') }} {% endblock %} {% block content %}

{{ profile.user.username }} {% if profile.fullname %}({{ profile.fullname }}){% 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')) }}
{{ profile.user.username }}

{% if show_manage_roles_button %} {# TODO: Need a method to detect whether the logged in user can manage any roles, here #} {{_("Manage Roles")}} {% endif %} {% if profile.allows_editing_by(request.user) %} {{_("Manage API Keys")}} {{_("Edit Profile")}} {% endif %} {{ ban_link(profile.user, request.user) }}

{% if demos_page.object_list | length > 0 %}
{{ 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 %} {% if wiki_activity and wiki_activity | length > 0 %}

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

{% 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")}}
{% else %}

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

{% if profile.user == request.user %} {% trans docs_url=url('docs.views.docs') %}

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

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