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