38 lines
821 B
Plaintext
38 lines
821 B
Plaintext
@namespace Oqtane.Modules.Admin.Themes
|
|
@inherits ModuleBase
|
|
@inject IThemeService ThemeService
|
|
|
|
@if (Themes == null)
|
|
{
|
|
<p><em>Loading...</em></p>
|
|
}
|
|
else
|
|
{
|
|
<ActionLink Action="Add" Text="Install Theme" />
|
|
<table class="table table-borderless">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var theme in Themes)
|
|
{
|
|
<tr>
|
|
<td>@theme.Name</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
|
|
@code {
|
|
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Host; } }
|
|
|
|
List<Theme> Themes;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
Themes = await ThemeService.GetThemesAsync();
|
|
}
|
|
} |