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