98 lines
3.4 KiB
Plaintext
98 lines
3.4 KiB
Plaintext
@page
|
|
@model Mesa_Backlog.Pages.FetchData
|
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<title>Mesa Backlog - Data</title>
|
|
<link href="~/css/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
|
<link href="~/css/site.css" rel="stylesheet" />
|
|
<style>
|
|
.BugFix {
|
|
background-color: #ddd9c4;
|
|
}
|
|
|
|
.High {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
.Med {
|
|
background-color: #c4d79b;
|
|
}
|
|
|
|
.Low {
|
|
background-color: #fabf8f;
|
|
}
|
|
|
|
.TBD {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
td,
|
|
a {
|
|
color: #000000;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="main">
|
|
<div class="content px-4">
|
|
<table border="1" style="min-width:900px;">
|
|
<tr>
|
|
<td>
|
|
<a href="@(nameof(Mesa_Backlog.Pages.FetchData))">View (from DevOps)</a><br />
|
|
</td>
|
|
<td>
|
|
@if (!string.IsNullOrEmpty(Model.JSON))
|
|
{
|
|
<form method="post" action="@(nameof(Mesa_Backlog.Pages.UploadAndExtract))"
|
|
asp-antiforgery="true">
|
|
<input type="submit" value="Back" /><br />
|
|
<input type="hidden" asp-for="@(Model.JSON)" />
|
|
</form>
|
|
}
|
|
</td>
|
|
<td>
|
|
<a href="@(nameof(Mesa_Backlog.Pages.UploadAndExtract))">Upload and Extract</a>
|
|
</td>
|
|
<td>
|
|
@if (Model.JsonFiles is not null && Model.JsonFiles.Any())
|
|
{
|
|
<form method="post" asp-antiforgery="true">
|
|
<select asp-for="@(Model.JsonFileName)">
|
|
@foreach (string jsonFile in Model.JsonFiles)
|
|
{
|
|
@(await Html.PartialAsync(nameof(Mesa_Backlog.Pages.Shared.FileOption), jsonFile))
|
|
}
|
|
</select><br />
|
|
<input type="submit" value="View last uploaded" />
|
|
</form>
|
|
}
|
|
</td>
|
|
</tr>
|
|
</table><br />
|
|
@if (Model.WorkItems is not null && Model.WorkItems.Any())
|
|
{
|
|
<h2>@(Model.WorkItems.Count) Work Item(s)</h2>
|
|
@(await Html.PartialAsync(nameof(Mesa_Backlog.Pages.Shared.WorkItemsTable), Model.WorkItems))
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.JSON))
|
|
{
|
|
<form method="post" asp-antiforgery="true">
|
|
<input type="submit" value="And new to DevOps" /><br />
|
|
<textarea cols="150" rows="25" asp-for="@(Model.JSON)">@Html.Raw(Model.JSON)</textarea><br />
|
|
<input type="hidden" asp-for="@(Model.PageName)"
|
|
value="@(nameof(Mesa_Backlog.Pages.FetchData.PageName))" />
|
|
</form>
|
|
}
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|