mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Update logs are now in the UI
This commit is contained in:
parent
54e5874770
commit
3520b56bb6
11 changed files with 158 additions and 25 deletions
|
@ -1,8 +1,8 @@
|
|||
@model NzbDrone.Core.Model.UpdatePackage
|
||||
@model NzbDrone.Web.Models.UpdateModel
|
||||
@section TitleContent{
|
||||
Update
|
||||
}
|
||||
@if (Model == null)
|
||||
@if (Model.UpdatePackage == null)
|
||||
{
|
||||
<h2>
|
||||
There are no updates available.</h2>
|
||||
|
@ -10,7 +10,21 @@ Update
|
|||
else
|
||||
{
|
||||
<h2>
|
||||
Available Update: @Model.Version
|
||||
Available Update: @Model.UpdatePackage.Version
|
||||
@Ajax.ActionLink("Update", "StartUpdate", "Update", null)
|
||||
</h2>
|
||||
}
|
||||
@if (Model.LogFiles.Count != 0)
|
||||
{
|
||||
<h3>
|
||||
Update Logs (@Model.LogFolder)
|
||||
</h3>
|
||||
<br />
|
||||
foreach (var log in Model.LogFiles)
|
||||
{
|
||||
<div>
|
||||
<a href="@Url.Action("ViewLog", "Update", new { filePath = log.Value })">
|
||||
@log.Key.ToString("MMM dd, hh:mm tt")</a>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
|
4
NzbDrone.Web/Views/Update/ViewLog.cshtml
Normal file
4
NzbDrone.Web/Views/Update/ViewLog.cshtml
Normal file
|
@ -0,0 +1,4 @@
|
|||
@section TitleContent{
|
||||
Update Log
|
||||
}
|
||||
@Html.Raw(ViewBag.Log)
|
Loading…
Add table
Add a link
Reference in a new issue