网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
@using Dpz.Core.EnumLibrary
@model CodeNoteTree?
@if (Model == null)
{
}
else
{
    if (!Model.IsRoot)
    {
        <div class="row prev">
            <div class="header">
                <a asp-action="Index" asp-route-path="">
                    <span style="min-width: 16px">[Root]</span>
                </a>
                <span>/</span>
                @{
                    var steps = new List<string>();
                }
                @for (var i = 0; i < Model.CurrentPaths.Count; i++)
                {
                    if (i == Model.CurrentPaths.Count - 1)
                    {
                        <span>@Model.CurrentPaths[i]</span>
                        break;
                    }
                    var item = Model.CurrentPaths[i];
                    steps.Add(item);
                    <a asp-action="Index" asp-route-path="@string.Join("/", steps)">
                        <span style="min-width: 16px">@item</span>
                    </a>
                    <span>/</span>
                }
            </div>
        </div>
    }
    if (!Model.IsDirectory)
    {
        <partial name="_CodeView" model="Model.CodeContainer"/>
    }
    else
    {
        <partial name="_CodeListViewPartial" model="(true,Model.Directories)"/>
        <partial name="_CodeListViewPartial" model="(false,Model.Files)"/>
        <partial name="_ReadmePartial" model="Model.ReadmeContent"/>
    }

    if (TempData["SearchKey"] is not string)
    {
        var path = string.Join('/', Model.CurrentPaths ?? new List<string>());
        path = string.IsNullOrEmpty(path) ? "/" : path;
        <partial name="_GlobalCommentPartial" model="(CommentNode.Code, path)"/>
    }
}
loading