This commit is contained in:
Zel
2025-02-27 22:51:49 +08:00
parent e869d9dbbd
commit 7e0e0445d5
10 changed files with 37 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -26,10 +26,10 @@
<table class="table fixedTable100 table-striped" border="0" width="100%" cellspacing="0" cellpadding="0"> <table class="table fixedTable100 table-striped" border="0" width="100%" cellspacing="0" cellpadding="0">
<thead> <thead>
<tr> <tr>
<td><strong>Name</strong></td> <td><strong></strong></td>
<td><strong>Version</strong></td> <td><strong>版本</strong></td>
<td><strong>Size</strong></td> <td><strong>大小</strong></td>
<td><strong>Action</strong></td> <td><strong>操作</strong></td>
</tr> </tr>
</thead> </thead>

View File

@@ -23,6 +23,8 @@
<div class="alert alert-success">@Html.Raw(Model.SuccessMessage)</div> <div class="alert alert-success">@Html.Raw(Model.SuccessMessage)</div>
} }
@Html.Raw(ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath, @Html.Raw(ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath,
"这将重建wiki中的所有页面,这可能需要一些时间. 继续吗?", "这将重建wiki中的所有页面,这可能需要一些时间. 继续吗?",
"重新构建所有页面", "/Admin/RebuildAllPages", Context.Request.Path.Value)) "重新构建所有页面", "/Admin/RebuildAllPages", Context.Request.Path.Value))
@@ -31,9 +33,12 @@
"这将编译wiki中的所有页面并将其存储在缓存中,这可能需要一些时间. 继续吗?", "这将编译wiki中的所有页面并将其存储在缓存中,这可能需要一些时间. 继续吗?",
"重新缓存页面", "/Admin/PreCacheAllPages", Context.Request.Path.Value)) "重新缓存页面", "/Admin/PreCacheAllPages", Context.Request.Path.Value))
@Html.Raw(ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath, @if (sessionState.Role == Constants.Roles.Administrator)
{
@Html.Raw(ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath,
"这将将删除所有页面和页面附件的所有修订历史记录,只保留最新版本。危险动作!!!继续吗?", "这将将删除所有页面和页面附件的所有修订历史记录,只保留最新版本。危险动作!!!继续吗?",
"截断页面修订", "/Admin/TruncatePageRevisions", Context.Request.Path.Value)) "截断页面修订", "/Admin/TruncatePageRevisions", Context.Request.Path.Value))
}
<br /> <br />
<br /> <br />
@@ -44,7 +49,7 @@
<div class="flex-grow-1 me-2"> <div class="flex-grow-1 me-2">
@Html.TextBoxFor(x => x.SearchString, new { @class = "form-control" }) @Html.TextBoxFor(x => x.SearchString, new { @class = "form-control" })
</div> </div>
<button type="submit" class="btn btn-primary">Search</button> <button type="submit" class="btn btn-primary">搜索</button>
</div> </div>
</div> </div>
<br /> <br />
@@ -77,9 +82,12 @@
<td>@p.ModifiedByUserName</td> <td>@p.ModifiedByUserName</td>
<td>@p.ModifiedDate</td> <td>@p.ModifiedDate</td>
<td> <td>
@if (sessionState.Role == Constants.Roles.Administrator)
{
@Html.Raw(ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath, @Html.Raw(ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath,
$"即将删除 \"{p.Name}\" , 总共 {p.Revision} 个修订版和附件将移入删除队列无法恢复.继续吗?", $"即将删除 \"{p.Name}\" , 总共 {p.Revision} 个修订版和附件将移入删除队列无法恢复.继续吗?",
"删除", "/Admin/DeletePage/" + @p.Id, Context.Request.Path.Value)) "删除", "/Admin/DeletePage/" + @p.Id, Context.Request.Path.Value))
}
</td> </td>
</tr> </tr>
} }

View File

@@ -60,6 +60,24 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "参考文献", "参考文
solution\参考文献\软件测试技术及其测试工具的研究与应用.pdf = solution\参考文献\软件测试技术及其测试工具的研究与应用.pdf solution\参考文献\软件测试技术及其测试工具的研究与应用.pdf = solution\参考文献\软件测试技术及其测试工具的研究与应用.pdf
EndProjectSection EndProjectSection
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "流程图", "流程图", "{03D13B05-0FB0-49F5-8F0E-BFD284653943}"
ProjectSection(SolutionItems) = preProject
solution\流程图\功能需求分析.vsdx = solution\流程图\功能需求分析.vsdx
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "角色", "角色", "{C7FC3840-EBAF-4095-835E-1D64E83150FD}"
ProjectSection(SolutionItems) = preProject
solution\流程图\角色\版主角色.png = solution\流程图\角色\版主角色.png
solution\流程图\角色\版主角色.vsdx = solution\流程图\角色\版主角色.vsdx
solution\流程图\角色\贡献者角色.png = solution\流程图\角色\贡献者角色.png
solution\流程图\角色\贡献者角色.vsdx = solution\流程图\角色\贡献者角色.vsdx
solution\流程图\角色\管理员角色.jpg = solution\流程图\角色\管理员角色.jpg
solution\流程图\角色\管理员角色.png = solution\流程图\角色\管理员角色.png
solution\流程图\角色\管理员角色.vsdx = solution\流程图\角色\管理员角色.vsdx
solution\流程图\角色\用户角色.png = solution\流程图\角色\用户角色.png
solution\流程图\角色\用户角色.vsdx = solution\流程图\角色\用户角色.vsdx
EndProjectSection
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@@ -141,6 +159,8 @@ Global
{ED4F5B2D-B3C4-435B-811A-25AB4C7259DF} = {E877E5D9-BD3A-486A-ABA6-B890133D5220} {ED4F5B2D-B3C4-435B-811A-25AB4C7259DF} = {E877E5D9-BD3A-486A-ABA6-B890133D5220}
{A4B6DA90-0F22-4D31-8978-FAC0309092B1} = {B20FC982-E0BE-4893-A3B4-535C3E48EBE6} {A4B6DA90-0F22-4D31-8978-FAC0309092B1} = {B20FC982-E0BE-4893-A3B4-535C3E48EBE6}
{E4AA920F-DB5E-4D0C-8B75-5E89F702C76F} = {6B58B907-FD64-4CC1-86B5-99EE38C6C473} {E4AA920F-DB5E-4D0C-8B75-5E89F702C76F} = {6B58B907-FD64-4CC1-86B5-99EE38C6C473}
{03D13B05-0FB0-49F5-8F0E-BFD284653943} = {6B58B907-FD64-4CC1-86B5-99EE38C6C473}
{C7FC3840-EBAF-4095-835E-1D64E83150FD} = {03D13B05-0FB0-49F5-8F0E-BFD284653943}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3299E570-76FA-4831-9150-C1CCF4CB50E0} SolutionGuid = {3299E570-76FA-4831-9150-C1CCF4CB50E0}

Binary file not shown.

Binary file not shown.