improve(company): clickable address bar with Google Maps link on company profile
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
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
Address displayed prominently below description with 'Pokaż na mapie' link. Location pill in contact bar also links to Google Maps. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8336b7ef49
commit
f96470aef0
@ -1062,6 +1062,20 @@
|
||||
{% else %}
|
||||
{# ===== FULL MEMBER VIEW ===== #}
|
||||
|
||||
{% if company.address_street or company.address_city %}
|
||||
{% set full_addr = ((company.address_street ~ ', ') if company.address_street else '') ~ ((company.address_postal ~ ' ') if company.address_postal else '') ~ (company.address_city or '') %}
|
||||
<div style="display: flex; align-items: center; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); padding: var(--spacing-sm) var(--spacing-md); background: var(--surface); border: 1px solid var(--border-color, #e5e7eb); border-radius: var(--radius); font-size: var(--font-size-sm);">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="var(--primary)" stroke-width="2" style="flex-shrink: 0;">
|
||||
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/>
|
||||
<circle cx="12" cy="10" r="3"/>
|
||||
</svg>
|
||||
<a href="https://www.google.com/maps/search/?api=1&query={{ full_addr|urlencode }}" target="_blank" rel="noopener" style="color: var(--text-primary); text-decoration: none;" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">
|
||||
{{ full_addr }}
|
||||
</a>
|
||||
<a href="https://www.google.com/maps/search/?api=1&query={{ full_addr|urlencode }}" target="_blank" rel="noopener" style="margin-left: auto; color: var(--primary); font-weight: 500; text-decoration: none; font-size: var(--font-size-xs); white-space: nowrap;" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">Pokaż na mapie →</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- Convert social_media list to dict for contact bar -->
|
||||
{% set sm_bar = {} %}
|
||||
{% if social_media %}
|
||||
@ -1157,13 +1171,14 @@
|
||||
{% endif %}
|
||||
|
||||
{% if company.address_city %}
|
||||
<span class="contact-bar-item" style="cursor: default;">
|
||||
{% set full_address = ((company.address_street ~ ', ') if company.address_street else '') ~ ((company.address_postal ~ ' ') if company.address_postal else '') ~ company.address_city %}
|
||||
<a href="https://www.google.com/maps/search/?api=1&query={{ full_address|urlencode }}" target="_blank" rel="noopener" class="contact-bar-item" title="{{ full_address }}">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/>
|
||||
<circle cx="12" cy="10" r="3"/>
|
||||
</svg>
|
||||
<span>{{ company.address_city }}</span>
|
||||
</span>
|
||||
</a>
|
||||
{% else %}
|
||||
<span class="contact-bar-item disabled">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user