refactor(nav): reorganize navigation — Projekty dropdown, admin bar cleanup
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
Main NAV: replace Kaszubia/Więcej with "Projekty" dropdown (Kaszubia, PEJ). Remove Social (beta) and Korzyści from main NAV (already in admin bar). Add "Narzędzia" dropdown to admin bar (Kontakty, Raporty, Mapa Powiązań). Admin nav reduced from 13 to 10 items. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7508823cac
commit
f0358024e8
@ -1458,11 +1458,6 @@
|
|||||||
<!-- Forum - główna pozycja -->
|
<!-- Forum - główna pozycja -->
|
||||||
<li><a href="{{ url_for('forum_index') }}" class="nav-link {% if request.endpoint and 'forum' in request.endpoint %}active{% endif %}">Forum</a></li>
|
<li><a href="{{ url_for('forum_index') }}" class="nav-link {% if request.endpoint and 'forum' in request.endpoint %}active{% endif %}">Forum</a></li>
|
||||||
|
|
||||||
<!-- Social Media - dla MANAGER+ -->
|
|
||||||
{% if current_user.is_authenticated and current_user.has_role(SystemRole.MANAGER) %}
|
|
||||||
<li><a href="{{ url_for('admin.social_publisher_list') }}" class="nav-link {% if request.endpoint and 'social_publisher' in request.endpoint %}active{% endif %}">Social <span class="nav-badge-beta">beta</span></a></li>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- Wiadomości - dla zalogowanych członków -->
|
<!-- Wiadomości - dla zalogowanych członków -->
|
||||||
{% if current_user.is_authenticated %}
|
{% if current_user.is_authenticated %}
|
||||||
<li>
|
<li>
|
||||||
@ -1483,25 +1478,14 @@
|
|||||||
<li><a href="{{ url_for('board.index') }}" class="nav-link {% if request.endpoint and 'board' in request.endpoint %}active{% endif %}">Rada</a></li>
|
<li><a href="{{ url_for('board.index') }}" class="nav-link {% if request.endpoint and 'board' in request.endpoint %}active{% endif %}">Rada</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Korzyści członkowskie (tylko dla adminów w trybie testowym) -->
|
<!-- Projekty dropdown — for all logged-in users -->
|
||||||
{% if current_user.can_access_admin_panel() %}
|
|
||||||
<li><a href="{{ url_for('benefits.benefits_list') }}" class="nav-link {% if request.endpoint and 'benefits' in request.endpoint %}active{% endif %}">Korzyści</a></li>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- Kaszubia / Więcej Dropdown -->
|
|
||||||
{% if current_user.is_authenticated and current_user.email == 'maciej.pienczyn@inpi.pl' %}
|
|
||||||
<li class="nav-dropdown">
|
<li class="nav-dropdown">
|
||||||
<a href="#" class="nav-link">Więcej ▾</a>
|
<a href="#" class="nav-link {% if request.endpoint and ('zopk' in (request.endpoint or '') or 'pej' in (request.endpoint or '')) %}active{% endif %}">Projekty ▾</a>
|
||||||
<ul class="nav-dropdown-menu">
|
<ul class="nav-dropdown-menu">
|
||||||
<li><a href="{{ url_for('zopk_index') }}">Kaszubia</a></li>
|
<li><a href="{{ url_for('zopk_index') }}">Kaszubia</a></li>
|
||||||
<li><a href="{{ url_for('contacts.contacts_list') }}" class="owner-only">Kontakty zewnętrzne</a></li>
|
<li><a href="{{ url_for('pej_index') }}">PEJ</a></li>
|
||||||
<li><a href="{{ url_for('reports.reports_index') }}" class="owner-only">Raporty</a></li>
|
|
||||||
<li><a href="#" onclick="openConnectionsMap(); return false;" class="owner-only">Mapa Powiązań</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
|
||||||
<li><a href="{{ url_for('zopk_index') }}" class="nav-link">Kaszubia</a></li>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- Notifications -->
|
<!-- Notifications -->
|
||||||
<li class="notifications-dropdown">
|
<li class="notifications-dropdown">
|
||||||
@ -1853,6 +1837,38 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Narzędzia (owner-only: Kontakty zewnętrzne, Raporty, Mapa Powiązań) -->
|
||||||
|
{% if is_audit_owner %}
|
||||||
|
<div class="admin-dropdown">
|
||||||
|
<button class="admin-dropdown-trigger">
|
||||||
|
Narzędzia
|
||||||
|
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
<div class="admin-dropdown-menu">
|
||||||
|
<a href="{{ url_for('contacts.contacts_list') }}">
|
||||||
|
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>
|
||||||
|
</svg>
|
||||||
|
Kontakty zewnętrzne
|
||||||
|
</a>
|
||||||
|
<a href="{{ url_for('reports.reports_index') }}">
|
||||||
|
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
||||||
|
</svg>
|
||||||
|
Raporty
|
||||||
|
</a>
|
||||||
|
<a href="#" onclick="openConnectionsMap(); return false;">
|
||||||
|
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l5.447 2.724A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"/>
|
||||||
|
</svg>
|
||||||
|
Mapa Powiązań
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user