This repository has been archived on 2025-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
2019-09-30 23:50:10 -04:00

34 lines
749 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" Style="float: right; margin: 10px;" />
<Pager Items="@themes">
<Header>
<th>Name</th>
<th>Version</th>
</Header>
<Row>
<td>@context.Name</td>
<td>@context.Version</td>
</Row>
</Pager>
}
@code {
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Host; } }
List<Theme> themes;
protected override async Task OnInitializedAsync()
{
themes = await ThemeService.GetThemesAsync();
}
}