mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
AssemblyInfo.cs cleanup
This commit is contained in:
parent
b43397752e
commit
157bcd8b0f
24 changed files with 72 additions and 202 deletions
|
@ -1,17 +1,21 @@
|
|||
using System;
|
||||
using System.Web.Mvc;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Core.Providers;
|
||||
using NzbDrone.Core.Providers.Jobs;
|
||||
using NzbDrone.Web.Models;
|
||||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
public class SharedController : Controller
|
||||
{
|
||||
private readonly JobProvider _jobProvider;
|
||||
private readonly EnviromentProvider _enviromentProvider;
|
||||
|
||||
public SharedController(JobProvider jobProvider)
|
||||
public SharedController(JobProvider jobProvider, EnviromentProvider enviromentProvider)
|
||||
{
|
||||
_jobProvider = jobProvider;
|
||||
_enviromentProvider = enviromentProvider;
|
||||
}
|
||||
|
||||
public ActionResult Index()
|
||||
|
@ -22,8 +26,8 @@ namespace NzbDrone.Web.Controllers
|
|||
[ChildActionOnly]
|
||||
public ActionResult Footer()
|
||||
{
|
||||
ViewData["RssTimer"] = _jobProvider.NextScheduledRun(typeof(RssSyncJob)).ToString("yyyyMMddHHmmss");
|
||||
return PartialView();
|
||||
|
||||
return PartialView(new FooterModel { BuildTime = _enviromentProvider.BuildDateTime, Version = _enviromentProvider.Version });
|
||||
}
|
||||
|
||||
[ChildActionOnly]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue