@{ /****************************************************************************** // MARECHAI: Master repository of computing history artifacts information // ---------------------------------------------------------------------------- // // Author(s) : Natalia Portillo // // --[ 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 . // // ---------------------------------------------------------------------------- // Copyright © 2003-2020 Natalia Portillo *******************************************************************************/ } @page "/admin/resolutions/details/{Id:int}" @page "/admin/resolutions/edit/{Id:int}" @page "/admin/resolutions/create" @using Marechai.Database.Models @inherits OwningComponentBase @inject IStringLocalizer L @inject NavigationManager NavigationManager @inject UserManager UserManager @inject AuthenticationStateProvider AuthenticationStateProvider @attribute [Authorize(Roles = "UberAdmin, Admin")]

@L["Resolution details"]


@if(!_loaded) {

@L["Loading..."]

return; }
@L["Width (pixels or characters)"] @L["Please enter a valid width in pixels or characters."] @L["Height (pixels or characters)"] @L["Please enter a valid height in pixels or characters."] @if(_editing || _model.Colors.HasValue) { @L["Colors"] @if(_editing) { @L["Unknown (colors)"] } @if(!_editing || !_unknownColors) { @L["Please enter a valid number of colors."] } } @if(_editing || _model.Palette.HasValue) { @L["Colors in palette"] @if(_editing) { @L["Unknown (colors in palette)"] } @if(!_editing || !_unknownPalette) { @L["Please enter a valid number of colors in palette."] } } @L["Resolution is character based (text only)."] @L["Resolution only has gray colors."]
@if(!_editing) { } else { } @L["Back to list"]