mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
76 lines
3.0 KiB
Plaintext
76 lines
3.0 KiB
Plaintext
@{
|
|
/******************************************************************************
|
|
// MARECHAI: Master repository of computing history artifacts information
|
|
// ----------------------------------------------------------------------------
|
|
//
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
//
|
|
// --[ License ] --------------------------------------------------------------
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
//
|
|
// ----------------------------------------------------------------------------
|
|
// Copyright © 2003-2021 Natalia Portillo
|
|
*******************************************************************************/
|
|
}
|
|
@inject StringLocalizer<NavMenu> L
|
|
<div class="navbar navbar-dark pl-4 top-row">
|
|
<a class="navbar-brand" href="">Marechai</a>
|
|
<button class="navbar-toggler" @onclick="ToggleNavMenu">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
</div>
|
|
<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
|
|
<ul class="flex-column nav">
|
|
<li class="nav-item px-3">
|
|
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
|
|
<span aria-hidden="true" class="fa fa-newspaper"></span> @L["News"]
|
|
</NavLink>
|
|
</li>
|
|
<li class="nav-item px-3">
|
|
<NavLink class="nav-link" href="companies">
|
|
<span aria-hidden="true" class="fa fa-building"></span> @L["Companies"]
|
|
</NavLink>
|
|
</li>
|
|
<li class="nav-item px-3">
|
|
<NavLink class="nav-link" href="computers">
|
|
<span aria-hidden="true" class="fa fa-desktop"></span> @L["Computers"]
|
|
</NavLink>
|
|
</li>
|
|
<li class="nav-item px-3">
|
|
<NavLink class="nav-link" href="consoles">
|
|
<span aria-hidden="true" class="fa fa-gamepad"></span> @L["Consoles"]
|
|
</NavLink>
|
|
</li>
|
|
<AuthorizeView Roles="UberAdmin, Admin">
|
|
<li class="nav-item px-3">
|
|
<NavLink class="nav-link" href="admin">
|
|
<span aria-hidden="true" class="fa fa-tools"></span> @L["Admin area"]
|
|
</NavLink>
|
|
</li>
|
|
</AuthorizeView>
|
|
</ul>
|
|
</div>
|
|
|
|
@code {
|
|
private bool _collapseNavMenu = true;
|
|
|
|
private string NavMenuCssClass => _collapseNavMenu ? "collapse" : null;
|
|
|
|
private void ToggleNavMenu()
|
|
{
|
|
_collapseNavMenu = !_collapseNavMenu;
|
|
}
|
|
|
|
} |