mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Decode SCSI INQUIRY in details.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
@using DiscImageChef.Decoders.SCSI
|
||||
@using DiscImageChef.Server.Core
|
||||
@model DiscImageChef.CommonTypes.Metadata.Scsi
|
||||
|
||||
@{
|
||||
@@ -34,71 +36,16 @@
|
||||
// ****************************************************************************/
|
||||
}
|
||||
<div>
|
||||
<h4>Scsi</h4>
|
||||
<h4>SCSI INQUIRY - ID = @Model.Id</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.InquiryData)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.InquiryData)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSense6)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.SupportsModeSense6)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSense10)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.SupportsModeSense10)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSubpages)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.SupportsModeSubpages)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense6Data)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense6Data)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense10Data)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense10Data)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense6CurrentData)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense6CurrentData)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense10CurrentData)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense10CurrentData)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense6ChangeableData)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense6ChangeableData)
|
||||
</dd>
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense10ChangeableData)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense10ChangeableData)
|
||||
</dd>
|
||||
</dl>
|
||||
@Html.Raw(Html.EncodedMultiLineText(Inquiry.Prettify(Model.InquiryData)))
|
||||
</div>
|
||||
<div>
|
||||
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
|
||||
<form asp-action="Compare">
|
||||
<input type="hidden" asp-for="Id" />
|
||||
Compare to:
|
||||
<input name="RightId" type="number" />
|
||||
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
|
||||
<input class="btn btn-primary" type="submit" value="Compare" />
|
||||
</form>
|
||||
</div>
|
||||
@@ -17,5 +17,9 @@ namespace DiscImageChef.Server.Core
|
||||
public static string EncodedMultiLineText(this IHtmlHelper<MmcSd> helper, string text) =>
|
||||
string.IsNullOrEmpty(text) ? string.Empty
|
||||
: Regex.Replace(helper.Encode(text), "
|
|
", "<br/>");
|
||||
|
||||
public static string EncodedMultiLineText(this IHtmlHelper<Scsi> helper, string text) =>
|
||||
string.IsNullOrEmpty(text) ? string.Empty
|
||||
: Regex.Replace(helper.Encode(text), "
|
|
", "<br/>");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user