ildar-shaymukhametov_grandnode-refactorings/Grand.Web/Views/Shared/Components/AdminHeaderLinks/Default.cshtml
@model AdminHeaderLinksModel
@if (Model.IsCustomerImpersonated || Model.DisplayAdminLink)
{
    @if (Model.IsCustomerImpersonated)
    {
        <li class="nav-item">
            <a class="d-flex align-items-center nav-link btn btn-outline-secondary" href="@Url.RouteUrl("Logout")" title="@T("Account.ImpersonatedAs.Finish.Hint")">
                <span class="mdi mdi-close"></span>
                <span class="text text-uppercase ml-3">@string.Format(T("Account.ImpersonatedAs").Text, Model.ImpersonatedCustomerEmailUsername)</span>
            </a>
        </li>
    }
    @if (Model.DisplayAdminLink)
    {
        <li class="nav-item">
            <a class="d-flex align-items-center nav-link btn btn-outline-secondary" href="@Url.RouteUrl("AdminIndex")">
                <span class="mdi mdi-settings"></span>
                <span class="text text-uppercase ml-3">@T("admin")</span>
            </a>
        </li>
    }
    @if (!string.IsNullOrEmpty(Model.EditPageUrl))
    {
        <li class="nav-item">
            <a target="_blank" class="d-flex align-items-center nav-link btn btn-outline-secondary" href="@Model.EditPageUrl">
                <span class="mdi mdi-wrench-outline"></span>
                <span class="text text-uppercase ml-3">@T("edit")</span>
            </a>
        </li>
    }
}