Render font-awesome icons on the menu.

pull/318/head
Halil ibrahim Kalkan 7 years ago
parent a7cd9379a8
commit 50b10aca61

@ -10,7 +10,16 @@
}
<li class="nav-item @(menuItem.IsDisabled ? "disabled" : "")">
<a class="nav-link" href="@(menuItem.Url ?? "#")">@menuItem.DisplayName</a> @*<span class="sr-only">(current)</span>*@
<a class="nav-link" href="@(menuItem.Url ?? "#")">
@if (menuItem.Icon != null)
{
if (menuItem.Icon.StartsWith("fa"))
{
<i class="@menuItem.Icon"></i>
}
}
@menuItem.DisplayName
</a> @*<span class="sr-only">(current)</span>*@
</li>
}
else

Loading…
Cancel
Save