fix: show profile photos on /rada/ board members page
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

The template always rendered initials instead of checking for avatar_path.
Now displays the user's photo when available, with initials as fallback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-04-09 21:10:45 +02:00
parent 9f82017d84
commit 898c10921d

View File

@ -443,7 +443,11 @@
{% for member in board_members %}
<div class="member-card">
<div class="member-avatar">
{% if member.avatar_path %}
<img src="{{ url_for('static', filename=member.avatar_path) }}" alt="{{ member.name }}" style="width:100%;height:100%;border-radius:50%;object-fit:cover;">
{% else %}
{{ member.name[:1].upper() if member.name else member.email[:1].upper() }}
{% endif %}
</div>
<div class="member-info">
<div class="member-name">{{ member.name or member.email.split('@')[0] }}</div>