mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
90 lines
2.7 KiB
Plaintext
90 lines
2.7 KiB
Plaintext
@{
|
|
/******************************************************************************
|
|
// MARECHAI: Master repository of computing history artifacts information
|
|
// ----------------------------------------------------------------------------
|
|
//
|
|
// Filename : InstructionSetExtensions.razor
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
//
|
|
// --[ Description ] ----------------------------------------------------------
|
|
//
|
|
// List of instruction set extensions
|
|
//
|
|
// --[ License ] --------------------------------------------------------------
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
//
|
|
// ----------------------------------------------------------------------------
|
|
// Copyright © 2003-2020 Natalia Portillo
|
|
*******************************************************************************/
|
|
}
|
|
|
|
@page "/admin/instruction_set_extensions"
|
|
@using Marechai.Database.Models
|
|
@inherits OwningComponentBase<InstructionSetExtensionsService>
|
|
@inject IStringLocalizer<InstructionSetExtensionsService> L
|
|
@attribute [Authorize(Roles = "UberAdmin, Admin")]
|
|
<h3>@L["Instruction set extensions"]</h3>
|
|
@if (_extensions is null)
|
|
{
|
|
<p>@L["Loading..."]</p>
|
|
|
|
return;
|
|
}
|
|
<p>
|
|
<span class="btn btn-primary">
|
|
@L["Create new"]
|
|
</span>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@L["Extension"]
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in _extensions)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@item.Extension
|
|
</td>
|
|
<td>
|
|
<span class="btn btn-primary">
|
|
@L["Details"]
|
|
</span>
|
|
<span class="btn btn-secondary">
|
|
@L["Edit"]
|
|
</span>
|
|
<span class="btn btn-danger">
|
|
@L["Delete"]
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
@code
|
|
{
|
|
List<InstructionSetExtension> _extensions;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
_extensions = await Service.GetAsync();
|
|
}
|
|
} |