Files
Aaru.Server/DiscImageChef.Server/Areas/Admin/Views/MmcSds/Details.cshtml

123 lines
4.6 KiB
Plaintext

@using DiscImageChef.Decoders.SecureDigital
@using DiscImageChef.Server.Core
@model DiscImageChef.CommonTypes.Metadata.MmcSd
@{
Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
ViewBag.Title = "DiscImageChef";
}
@{
// /***************************************************************************
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : Details.cshtml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : DiscImageChef Server.
//
// --[ License ] --------------------------------------------------------------
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2019 Natalia Portillo
// ****************************************************************************/
}
<div>
<h4>MultiMediaCard / SecureDigital registers</h4>
<hr />
<dl class="row">
@if (Model.SCR != null)
{
if (Model.CID != null)
{
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.CID)
</dt>
<dd class="col-sm-10">
@Html.Raw(Html.EncodedMultiLineText(Decoders.PrettifyCID(Model.CID)))
</dd>
}
if (Model.CSD != null)
{
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.CSD)
</dt>
<dd class="col-sm-10">
@Html.Raw(Html.EncodedMultiLineText(Decoders.PrettifyCSD(Model.CSD)))
</dd>
}
if (Model.OCR != null)
{
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.OCR)
</dt>
<dd class="col-sm-10">
@Html.Raw(Html.EncodedMultiLineText(Decoders.PrettifyOCR(Model.OCR)))
</dd>
}
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.SCR)
</dt>
<dd class="col-sm-10">
@Html.Raw(Html.EncodedMultiLineText(Decoders.PrettifySCR(Model.SCR)))
</dd>
}
else
{
if (Model.CID != null)
{
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.CID)
</dt>
<dd class="col-sm-10">
@Html.Raw(Html.EncodedMultiLineText(DiscImageChef.Decoders.MMC.Decoders.PrettifyCID(Model.CID)))
</dd>
}
if (Model.CSD != null)
{
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.CSD)
</dt>
<dd class="col-sm-10">
@Html.Raw(Html.EncodedMultiLineText(DiscImageChef.Decoders.MMC.Decoders.PrettifyCSD(Model.CSD)))
</dd>
}
if (Model.OCR != null)
{
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.OCR)
</dt>
<dd class="col-sm-10">
@Html.Raw(Html.EncodedMultiLineText(DiscImageChef.Decoders.MMC.Decoders.PrettifyOCR(Model.OCR)))
</dd>
}
if (Model.ExtendedCSD != null)
{
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ExtendedCSD)
</dt>
<dd class="col-sm-10">
@Html.Raw(Html.EncodedMultiLineText(DiscImageChef.Decoders.MMC.Decoders.PrettifyExtendedCSD(Model.ExtendedCSD)))
</dd>
}
}
</dl>
</div>
<div>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>