mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Show decoded MODE SENSE 2Ah in mmc details.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
@using DiscImageChef.Decoders.SCSI
|
||||
@using DiscImageChef.Server.Core
|
||||
@model DiscImageChef.CommonTypes.Metadata.Mmc
|
||||
|
||||
@{
|
||||
@@ -34,16 +36,9 @@
|
||||
// ****************************************************************************/
|
||||
}
|
||||
<div>
|
||||
<h4>Mmc</h4>
|
||||
<h4>MMC FEATURES - ID = @Model.Id</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense2AData)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense2AData)
|
||||
</dd>
|
||||
</dl>
|
||||
@Html.Raw(Html.EncodedMultiLineText(Modes.PrettifyModePage_2A(Model.ModeSense2AData)))
|
||||
</div>
|
||||
<div>
|
||||
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using DiscImageChef.CommonTypes.Metadata;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
|
||||
namespace DiscImageChef.Server.Core
|
||||
@@ -8,5 +9,9 @@ namespace DiscImageChef.Server.Core
|
||||
public static string EncodedMultiLineText(this IHtmlHelper<CommonTypes.Metadata.Ata> helper, string text) =>
|
||||
string.IsNullOrEmpty(text) ? string.Empty
|
||||
: Regex.Replace(helper.Encode(text), "
|
|
", "<br/>");
|
||||
|
||||
public static string EncodedMultiLineText(this IHtmlHelper<Mmc> helper, string text) =>
|
||||
string.IsNullOrEmpty(text) ? string.Empty
|
||||
: Regex.Replace(helper.Encode(text), "
|
|
", "<br/>");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user