fix: remove links to empty ZOPK project pages from company profiles
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

Keep AI-generated descriptions visible but remove clickability until
project detail pages have real content (news tagged to projects).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-15 10:20:27 +01:00
parent 140d70f3e8
commit 7f9c1c6869

View File

@ -1517,20 +1517,17 @@
</p>
<div style="display: grid; gap: var(--spacing-md);">
{% for link in zopk_links %}
<a href="{{ url_for('public.zopk_project_detail', slug=link.project.slug) }}" style="display: flex; gap: var(--spacing-md); padding: var(--spacing-md); background: white; border-radius: var(--radius); border: 1px solid #d1fae5; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s;"
onmouseover="this.style.boxShadow='0 4px 12px rgba(5,150,105,0.15)'; this.style.transform='translateY(-1px)';"
onmouseout="this.style.boxShadow='none'; this.style.transform='none';">
<div style="display: flex; gap: var(--spacing-md); padding: var(--spacing-md); background: white; border-radius: var(--radius); border: 1px solid #d1fae5;">
<div style="flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
{% if link.project.project_type == 'energy' %}background: #fef3c7;{% elif link.project.project_type == 'technology' %}background: #dbeafe;{% elif link.project.project_type == 'defense' %}background: #fce7f3;{% else %}background: #f3f4f6;{% endif %}">
{% if link.project.project_type == 'energy' %}⚡{% elif link.project.project_type == 'technology' %}💻{% elif link.project.project_type == 'defense' %}🛡️{% else %}🏗️{% endif %}
</div>
<div style="flex: 1; min-width: 0;">
<div style="display: flex; align-items: center; gap: var(--spacing-sm); margin-bottom: 4px;">
<div style="display: flex; align-items: center; gap: var(--spacing-sm); margin-bottom: 4px; flex-wrap: wrap;">
<strong style="color: var(--text-primary);">{{ link.project.name }}</strong>
<span style="font-size: 11px; padding: 1px 8px; border-radius: 4px; background: #d1fae5; color: #065f46; font-weight: 600;">
{% if link.link_type == 'potential_supplier' %}potencjalny dostawca{% elif link.link_type == 'partner' %}partner{% elif link.link_type == 'beneficiary' %}beneficjent{% else %}{{ link.link_type }}{% endif %}
</span>
<span style="font-size: 11px; color: var(--text-muted); margin-left: auto;">trafność: {{ link.relevance_score }}%</span>
</div>
{% if link.collaboration_description %}
<p style="font-size: var(--font-size-sm); color: var(--text-secondary); margin: 0; line-height: 1.5;">
@ -1538,7 +1535,7 @@
</p>
{% endif %}
</div>
</a>
</div>
{% endfor %}
</div>
<div style="text-align: center; margin-top: var(--spacing-md);">