ildar-shaymukhametov_grandnode-refactorings/Grand.Web/Views/Shared/Components/ForumBreadcrumb/Default.cshtml
@model ForumBreadcrumbModel
@inject CommonSettings commonSettings
@{
    var breadcrumbDelimiter = commonSettings.BreadcrumbDelimiter;
}
<ol class="breadcrumb">
    <li class="breadcrumb-item">
        <a href="@Url.RouteUrl("HomePage")" title="@T("Forum.Breadcrumb.HomeTitle")">@T("Forum.Home")</a>
    </li>
    <li class="breadcrumb-item">
        @Html.RouteLink(T("Forum.Forums").Text, "Boards", null, new { title = T("Forum.Breadcrumb.ForumHomeTitle") })
    </li>
    @if (!String.IsNullOrEmpty(Model.ForumGroupId))
    {
        <li class="breadcrumb-item">
            @Html.RouteLink(Model.ForumGroupName, "ForumGroupSlug",
            new { id = Model.ForumGroupId, slug = Model.ForumGroupSeName },
            new { title = String.Format("{0}: {1} ", T("Forum.Breadcrumb.ForumGroupTitle"), Model.ForumGroupName) })
        </li>
    }
    @if (!String.IsNullOrEmpty(Model.ForumId))
    {
        <li class="breadcrumb-item">
            @Html.RouteLink(Model.ForumName, "ForumSlug",
            new { id = Model.ForumId, slug = Model.ForumSeName },
            new { title = String.Format("{0}: {1} ", T("Forum.Breadcrumb.ForumTitle"), Model.ForumName) })
        </li>
    }
    @if (!String.IsNullOrEmpty(Model.ForumTopicId))
    {
        <li class="breadcrumb-item active">
            @Html.RouteLink(Model.ForumTopicSubject, "TopicSlug",
            new { id = Model.ForumTopicId, slug = Model.ForumTopicSeName },
            new { title = String.Format("{0}: {1} ", T("Forum.BreadCrumb.ForumTitle"), Model.ForumTopicSubject) })
        </li>
    }
</ol>
