{% extends "base.html" %} {% block title %}{{ profile_user.username }}'s Profile - {{ brand_name }}{% endblock %} {% block header_actions %} {% if is_owner %}
Profile Editor
{% endif %} {% endblock %} {% block main_content %}
{# === DESKTOP: Horizontal layout with bio preview and action row === #} {# === MOBILE: Identity-first, actions in subtle secondary row === #}
{# PFP - prominent, never shrinks #}
{% if profile_user.profile_picture == 'default_avatar.png' %}
{% else %} Profile {% endif %}
{# Identity only - what user LIKES: Username, Real Name, Pronouns #}

{{ profile_user.username }}

{% if profile_user.real_name | default('') %}

{{ profile_user.real_name }}

{% endif %} {% if profile_user.pronouns %} {{ profile_user.pronouns }} {% endif %} {% if profile_user.show_email %}

{{ profile_user.email }}

{% endif %}
{# Secondary row - what user doesn't like, so we make it subtle: text-style stats + compact actions #}
· {% if not is_owner and g.user %} {% endif %}
Joined {{ profile_user.created_at.strftime('%B %Y') if profile_user.created_at else 'Unknown' }}
{# --- Contribution Activity --- #} {% if profile_user.show_activity %}

Activity Insights

{{ contribution_stats.total_contributions }}

Total

{{ contribution_stats.current_streak }}

Streak

{{ contribution_stats.longest_streak }}

Best

...

Avg

High Low
Hover insights
{% endif %} {# --- Pinned Repositories --- #}

Highlights

{# --- Contributed Repositories Section --- #} {% if contributed_repos %}

Collaborations

{% for repo in contributed_repos %}

{{ repo.owner_username }} /

{{ repo.repo_name }}

{% endfor %}
{% endif %} {# --- All Repositories Section --- #}

All Work

{% if all_owned_repos %} {% for repo in all_owned_repos %}
{{ repo.repo_name }}
{{ repo.language or 'Plain' }} {{ repo.stars or 0 }} stars
{% endfor %} {% else %}

Empty workspace.

{% endif %}
{% from "pagination_controls.html" import render_pagination %} {{ render_pagination(current_page, total_owned_pages, limit, 'profile.user_profile_by_username_route', {'username': profile_user.username}, total_count=total_owned_count, item_noun='repositories') }}
{% endblock %} {% block scripts %} {% endblock %} {% block portals %} {# --- Bio/Manifesto Modal --- #} {# --- Followers/Following List Modal --- #} {# --- Enhanced Edit Modal --- #} {% if is_owner %} {% endif %} {% endblock %}