2011-04-20 01:20:20 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Web.Mvc;
|
2011-02-10 06:51:04 +00:00
|
|
|
|
using NzbDrone.Core.Providers;
|
2011-04-20 07:44:13 +00:00
|
|
|
|
using NzbDrone.Core.Providers.Jobs;
|
2011-01-29 06:10:22 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class SharedController : Controller
|
|
|
|
|
{
|
2011-04-20 07:44:13 +00:00
|
|
|
|
private readonly JobProvider _jobProvider;
|
2011-02-10 06:51:04 +00:00
|
|
|
|
|
2011-04-20 07:44:13 +00:00
|
|
|
|
public SharedController(JobProvider jobProvider)
|
2011-02-10 06:51:04 +00:00
|
|
|
|
{
|
2011-04-20 07:44:13 +00:00
|
|
|
|
_jobProvider = jobProvider;
|
2011-02-10 06:51:04 +00:00
|
|
|
|
}
|
2011-01-29 06:10:22 +00:00
|
|
|
|
|
|
|
|
|
public ActionResult Index()
|
|
|
|
|
{
|
|
|
|
|
return RedirectToAction("Index", "Series");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ChildActionOnly]
|
|
|
|
|
public ActionResult Footer()
|
|
|
|
|
{
|
2011-05-17 04:01:01 +00:00
|
|
|
|
ViewData["RssTimer"] = _jobProvider.NextScheduledRun(typeof(RssSyncJob)).ToString("yyyyMMddHHmmss");
|
2011-01-29 06:10:22 +00:00
|
|
|
|
return PartialView();
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-04-10 02:44:01 +00:00
|
|
|
|
}
|