2011-04-20 03:20:20 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Web.Mvc;
|
2011-11-08 18:48:34 +01:00
|
|
|
|
using NzbDrone.Common;
|
2011-02-10 07:51:04 +01:00
|
|
|
|
using NzbDrone.Core.Providers;
|
2011-04-20 09:44:13 +02:00
|
|
|
|
using NzbDrone.Core.Providers.Jobs;
|
2011-11-08 18:48:34 +01:00
|
|
|
|
using NzbDrone.Web.Models;
|
2011-01-29 07:10:22 +01:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class SharedController : Controller
|
|
|
|
|
{
|
2011-04-20 09:44:13 +02:00
|
|
|
|
private readonly JobProvider _jobProvider;
|
2011-11-08 18:48:34 +01:00
|
|
|
|
private readonly EnviromentProvider _enviromentProvider;
|
2011-02-10 07:51:04 +01:00
|
|
|
|
|
2011-11-08 18:48:34 +01:00
|
|
|
|
public SharedController(JobProvider jobProvider, EnviromentProvider enviromentProvider)
|
2011-02-10 07:51:04 +01:00
|
|
|
|
{
|
2011-04-20 09:44:13 +02:00
|
|
|
|
_jobProvider = jobProvider;
|
2011-11-08 18:48:34 +01:00
|
|
|
|
_enviromentProvider = enviromentProvider;
|
2011-02-10 07:51:04 +01:00
|
|
|
|
}
|
2011-01-29 07:10:22 +01:00
|
|
|
|
|
|
|
|
|
public ActionResult Index()
|
|
|
|
|
{
|
|
|
|
|
return RedirectToAction("Index", "Series");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ChildActionOnly]
|
|
|
|
|
public ActionResult Footer()
|
|
|
|
|
{
|
2011-11-08 18:48:34 +01:00
|
|
|
|
|
|
|
|
|
return PartialView(new FooterModel { BuildTime = _enviromentProvider.BuildDateTime, Version = _enviromentProvider.Version });
|
2011-01-29 07:10:22 +01:00
|
|
|
|
}
|
2011-10-21 01:36:47 +02:00
|
|
|
|
|
|
|
|
|
[ChildActionOnly]
|
|
|
|
|
public ActionResult LocalSearch()
|
|
|
|
|
{
|
|
|
|
|
return PartialView();
|
|
|
|
|
}
|
2011-01-29 07:10:22 +01:00
|
|
|
|
}
|
2011-04-10 04:44:01 +02:00
|
|
|
|
}
|