mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add ATA comparer.
This commit is contained in:
82
DiscImageChef.Server/Areas/Admin/Views/Atas/Compare.cshtml
Normal file
82
DiscImageChef.Server/Areas/Admin/Views/Atas/Compare.cshtml
Normal file
@@ -0,0 +1,82 @@
|
||||
@model CompareModel
|
||||
|
||||
@{
|
||||
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
|
||||
// ****************************************************************************/
|
||||
}
|
||||
<h2>Comparing ATA IDENTIFY ID @Model.LeftId with ID @Model.RightId</h2>
|
||||
@if (Model.AreEqual)
|
||||
{
|
||||
<p>No differences found.</p>
|
||||
return;
|
||||
}
|
||||
|
||||
@if (Model.HasError)
|
||||
{
|
||||
<p class="alert-info">@Model.ErrorMessage</p>
|
||||
return;
|
||||
}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Value name
|
||||
</th>
|
||||
<th>
|
||||
ID: @Model.LeftId
|
||||
</th>
|
||||
<th>
|
||||
ID: @Model.RightId
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for (var i = 0; i < Model.ValueNames.Count; i++)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Model.ValueNames[i]
|
||||
</td>
|
||||
<td>
|
||||
@Model.LeftValues[i]
|
||||
</td>
|
||||
<td>
|
||||
@Model.RightValues[i]
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
<a asp-action="Index" class="btn btn-primary">Back to List</a>
|
||||
<a asp-action="Delete" asp-route-id="@Model.LeftId" class="btn btn-danger">Delete ID @Model.LeftId</a>
|
||||
<a asp-action="Delete" asp-route-id="@Model.RightId" class="btn btn-danger">Delete ID @Model.RightId</a>
|
||||
@@ -41,5 +41,11 @@
|
||||
@Html.Raw(Html.EncodedMultiLineText(Identify.Prettify(Model.Identify)))
|
||||
</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>
|
||||
Reference in New Issue
Block a user