Localize non components for the files pages

This commit is contained in:
hishamco
2020-11-20 01:20:59 +03:00
parent fb3bd51227
commit 6b61713205
4 changed files with 21 additions and 17 deletions

View File

@ -3,13 +3,14 @@
@inject NavigationManager NavigationManager
@inject IFolderService FolderService
@inject IFileService FileService
@inject IStringLocalizer<Index> Localizer
@if (_files != null)
{
<table class="table table-borderless">
<tr>
<td>
<label class="control-label">Folder: </label>
<label class="control-label">@Localizer["Folder:"] </label>
</td>
<td>
<select class="form-control" @onchange="(e => FolderChanged(e))">
@ -30,23 +31,23 @@
<Header>
<th style="width: 1px;">&nbsp;</th>
<th style="width: 1px;">&nbsp;</th>
<th>Name</th>
<th>Modified</th>
<th>Type</th>
<th>Size</th>
<th>@Localizer["Name"]</th>
<th>@Localizer["Modified"]</th>
<th>@Localizer["Type"]</th>
<th>@Localizer["Size"]</th>
</Header>
<Row>
<td><ActionLink Action="Details" Text="Edit" Parameters="@($"id=" + context.FileId.ToString())" ResourceKey="Details" /></td>
<td><ActionDialog Header="Delete File" Message="@("Are You Sure You Wish To Delete " + context.Name + "?")" Action="Delete" Security="SecurityAccessLevel.Admin" Class="btn btn-danger" OnClick="@(async () => await DeleteFile(context))" ResourceKey="DeleteFile" /></td>
<td><a href="@(ContentUrl(context.FileId))" target="_new">@context.Name</a></td>
<td>@context.ModifiedOn</td>
<td>@context.Extension.ToUpper() File</td>
<td>@context.Extension.ToUpper() @Localizer["File"]</td>
<td>@(context.Size / 1000) KB</td>
</Row>
</Pager>
@if (_files.Count == 0)
{
<div class="text-center">No Files Exist In Selected Folder</div>
<div class="text-center">@Localizer["No Files Exist In Selected Folder"]</div>
}
}