2012-01-15 06:50:37 +00:00
|
|
|
|
using System.Web.Mvc;
|
2011-11-08 17:48:34 +00:00
|
|
|
|
using NzbDrone.Common;
|
|
|
|
|
using NzbDrone.Web.Models;
|
2011-01-29 06:10:22 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class SharedController : Controller
|
|
|
|
|
{
|
2012-03-07 02:59:43 +00:00
|
|
|
|
private readonly EnvironmentProvider _environmentProvider;
|
2011-02-10 06:51:04 +00:00
|
|
|
|
|
2012-03-07 02:59:43 +00:00
|
|
|
|
public SharedController(EnvironmentProvider environmentProvider)
|
2011-02-10 06:51:04 +00:00
|
|
|
|
{
|
2012-03-07 02:59:43 +00:00
|
|
|
|
_environmentProvider = environmentProvider;
|
2011-02-10 06:51:04 +00:00
|
|
|
|
}
|
2011-01-29 06:10:22 +00:00
|
|
|
|
|
|
|
|
|
public ActionResult Index()
|
|
|
|
|
{
|
|
|
|
|
return RedirectToAction("Index", "Series");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ChildActionOnly]
|
2012-01-15 06:50:37 +00:00
|
|
|
|
[OutputCache(Duration = 3600)]
|
2011-01-29 06:10:22 +00:00
|
|
|
|
public ActionResult Footer()
|
|
|
|
|
{
|
2012-03-07 02:59:43 +00:00
|
|
|
|
return PartialView(new FooterModel { BuildTime = _environmentProvider.BuildDateTime, Version = _environmentProvider.Version });
|
2011-01-29 06:10:22 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2011-04-10 02:44:01 +00:00
|
|
|
|
}
|