Declutter nav: browse items in the bar, personal items in the profile menu
The top nav had grown to 9 flat, unordered items (browse + personal + utility mixed). Reorganize: - Main nav = browse only, in a logical order: خانه · استخدام · شیفتها · آماده به کار · مراکز درمانی · تقویم · 🔎 جستجو. - Personal items (✨ پیشنهادها, ❤️ پسندیدهها) move into the profile dropdown for logged-in users (پیشنهادها still shows in the bar for anonymous visitors, who have no profile menu). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -109,18 +109,18 @@
|
||||
</label>
|
||||
|
||||
<div class="nav-collapse">
|
||||
@* Browse items only — personal ones (پیشنهادها/پسندیدهها) live in the profile menu. *@
|
||||
<nav class="main-nav">
|
||||
<a asp-page="/Index" class="@(path == "/" ? "active" : null)">خانه</a>
|
||||
<a asp-page="/Recommendations/Index" class="@(path.StartsWith("/Recommendations") ? "active" : null)">✨ پیشنهادها</a>
|
||||
@if (User.Identity?.IsAuthenticated == true)
|
||||
{
|
||||
<a asp-page="/Me/Liked" class="@(path.StartsWith("/Me/Liked") ? "active" : null)">❤️ پسندیدهها</a>
|
||||
}
|
||||
<a href="/Shifts" data-tour="shifts" class="@(path.StartsWith("/Shifts") ? "active" : null)">شیفتها</a>
|
||||
<a href="/Jobs" data-tour="jobs" class="@(path.StartsWith("/Jobs") ? "active" : null)">استخدام</a>
|
||||
<a href="/Shifts" data-tour="shifts" class="@(path.StartsWith("/Shifts") ? "active" : null)">شیفتها</a>
|
||||
<a asp-page="/Talent/Index" class="@(path.StartsWith("/Talent") ? "active" : null)">آماده به کار</a>
|
||||
<a asp-page="/Facilities/Index" class="@(path.StartsWith("/Facilities") ? "active" : null)">مراکز درمانی</a>
|
||||
<a asp-page="/Calendar/Index" class="@(path.StartsWith("/Calendar") ? "active" : null)">تقویم هفتگی</a>
|
||||
<a asp-page="/Calendar/Index" class="@(path.StartsWith("/Calendar") ? "active" : null)">تقویم</a>
|
||||
@if (User.Identity?.IsAuthenticated != true)
|
||||
{
|
||||
<a asp-page="/Recommendations/Index" class="@(path.StartsWith("/Recommendations") ? "active" : null)">✨ پیشنهادها</a>
|
||||
}
|
||||
<a asp-page="/Search" class="nav-search-link @(path.StartsWith("/Search") ? "active" : null)">🔎 جستجو</a>
|
||||
</nav>
|
||||
<div class="header-actions">
|
||||
@@ -162,6 +162,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="pd-sep"></div>
|
||||
<a asp-page="/Recommendations/Index">✨ پیشنهادهای ویژه شما</a>
|
||||
<a asp-page="/Me/Liked">❤️ پسندیدهها</a>
|
||||
<div class="pd-sep"></div>
|
||||
<a href="@dashUrl" data-tour="panel">@dashIcon @dashLabel</a>
|
||||
<a asp-page="/Me/Profile">👤 ویرایش پروفایل</a>
|
||||
<div class="pd-sep"></div>
|
||||
|
||||
Reference in New Issue
Block a user