修正
This commit is contained in:
@@ -26,10 +26,10 @@
|
||||
<table class="table fixedTable100 table-striped" border="0" width="100%" cellspacing="0" cellpadding="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<td><strong>Name</strong></td>
|
||||
<td><strong>Version</strong></td>
|
||||
<td><strong>Size</strong></td>
|
||||
<td><strong>Action</strong></td>
|
||||
<td><strong>库</strong></td>
|
||||
<td><strong>版本</strong></td>
|
||||
<td><strong>大小</strong></td>
|
||||
<td><strong>操作</strong></td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
<div class="alert alert-success">@Html.Raw(Model.SuccessMessage)</div>
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Html.Raw(ConfirmActionHelper.GenerateWarnLink(GlobalConfiguration.BasePath,
|
||||
"这将重建wiki中的所有页面,这可能需要一些时间. 继续吗?",
|
||||
"重新构建所有页面", "/Admin/RebuildAllPages", Context.Request.Path.Value))
|
||||
@@ -31,9 +33,12 @@
|
||||
"这将编译wiki中的所有页面并将其存储在缓存中,这可能需要一些时间. 继续吗?",
|
||||
"重新缓存页面", "/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))
|
||||
}
|
||||
<br />
|
||||
<br />
|
||||
|
||||
@@ -44,7 +49,7 @@
|
||||
<div class="flex-grow-1 me-2">
|
||||
@Html.TextBoxFor(x => x.SearchString, new { @class = "form-control" })
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Search</button>
|
||||
<button type="submit" class="btn btn-primary">搜索</button>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
@@ -77,9 +82,12 @@
|
||||
<td>@p.ModifiedByUserName</td>
|
||||
<td>@p.ModifiedDate</td>
|
||||
<td>
|
||||
@Html.Raw(ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath,
|
||||
$"即将删除 \"{p.Name}\" , 总共 {p.Revision} 个修订版和附件将移入删除队列无法恢复.继续吗?",
|
||||
"删除", "/Admin/DeletePage/" + @p.Id, Context.Request.Path.Value))
|
||||
@if (sessionState.Role == Constants.Roles.Administrator)
|
||||
{
|
||||
@Html.Raw(ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath,
|
||||
$"即将删除 \"{p.Name}\" , 总共 {p.Revision} 个修订版和附件将移入删除队列无法恢复.继续吗?",
|
||||
"删除", "/Admin/DeletePage/" + @p.Id, Context.Request.Path.Value))
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user