feat: Green badge for verified persons, blue for unverified
- Verified (has person_id): green background, clickable - Unverified (no person_id): blue background, not clickable Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f174f4d4da
commit
93695209d0
@ -96,6 +96,7 @@
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
/* Unverified person - blue */
|
||||
.attendee-name {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@ -110,11 +111,21 @@
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
/* Verified person - green */
|
||||
.attendee-name.verified {
|
||||
background: #dcfce7;
|
||||
color: #166534;
|
||||
}
|
||||
|
||||
a.attendee-name:hover {
|
||||
background: #bfdbfe;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
a.attendee-name.verified:hover {
|
||||
background: #bbf7d0;
|
||||
}
|
||||
|
||||
.attendee-name svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
@ -265,17 +276,9 @@
|
||||
<div class="attendees-list">
|
||||
{% for attendee in event.attendees|sort(attribute='user.name') %}
|
||||
<div class="attendee-badge">
|
||||
{# Person badge - link to person profile if person_id exists #}
|
||||
{# Person badge - green if verified (has person_id), blue if not #}
|
||||
{% if attendee.user.person_id %}
|
||||
<a href="{{ url_for('person_detail', person_id=attendee.user.person_id) }}" class="attendee-name">
|
||||
<svg fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
||||
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
||||
<circle cx="12" cy="7" r="4"></circle>
|
||||
</svg>
|
||||
{{ attendee.user.name or attendee.user.email.split('@')[0] }}
|
||||
</a>
|
||||
{% elif attendee.user.company %}
|
||||
<a href="{{ url_for('company_detail_by_slug', slug=attendee.user.company.slug) }}" class="attendee-name">
|
||||
<a href="{{ url_for('person_detail', person_id=attendee.user.person_id) }}" class="attendee-name verified">
|
||||
<svg fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
||||
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
||||
<circle cx="12" cy="7" r="4"></circle>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user