49 lines
1.5 KiB
HTML
49 lines
1.5 KiB
HTML
{% extends "base.html" %}
|
|
{% load static %}
|
|
|
|
{% block title %}{{ profile_user.first_name }} - پایاچت{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="settings-layout">
|
|
|
|
<header class="settings-header">
|
|
<a href="{% url 'index' %}" class="settings-back">→</a>
|
|
<div class="settings-header-title">پروفایل</div>
|
|
</header>
|
|
|
|
<div class="settings-body">
|
|
|
|
<div class="profile-card">
|
|
<div class="profile-avatar">
|
|
{% if profile_user.avatar %}
|
|
<img src="{{ profile_user.avatar.url }}" alt="{{ profile_user.first_name }}">
|
|
{% else %}
|
|
{{ profile_user.first_name|first|default:"؟" }}
|
|
{% endif %}
|
|
</div>
|
|
|
|
<h1 class="profile-name">
|
|
{{ profile_user.first_name }}
|
|
{% include "includes/_verified_badge.html" with is_verified=profile_user.is_verified %}
|
|
</h1>
|
|
|
|
{% if profile_user.username %}
|
|
<div class="profile-username">{{ profile_user.username }}</div>
|
|
{% endif %}
|
|
|
|
{% if profile_user.bio %}
|
|
<p class="profile-bio">{{ profile_user.bio|linebreaksbr }}</p>
|
|
{% endif %}
|
|
|
|
<div class="profile-actions">
|
|
{% if profile_user.id == request.user.id %}
|
|
<a href="{% url 'settings' %}" class="profile-btn profile-btn-secondary">✏️ ویرایش پروفایل</a>
|
|
{% else %}
|
|
<a href="{% url 'start_private' profile_user.id %}" class="profile-btn profile-btn-primary">💬 ارسال پیام</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
{% endblock %} |