mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 09:47:39 +00:00
28 lines
No EOL
766 B
C#
28 lines
No EOL
766 B
C#
using System.Web.Mvc;
|
|
using NzbDrone.Common;
|
|
using NzbDrone.Web.Models;
|
|
|
|
namespace NzbDrone.Web.Controllers
|
|
{
|
|
public class SharedController : Controller
|
|
{
|
|
private readonly EnvironmentProvider _environmentProvider;
|
|
|
|
public SharedController(EnvironmentProvider environmentProvider)
|
|
{
|
|
_environmentProvider = environmentProvider;
|
|
}
|
|
|
|
public ActionResult Index()
|
|
{
|
|
return RedirectToAction("Index", "Series");
|
|
}
|
|
|
|
[ChildActionOnly]
|
|
[OutputCache(Duration = 3600)]
|
|
public ActionResult Footer()
|
|
{
|
|
return PartialView(new FooterModel { BuildTime = _environmentProvider.BuildDateTime, Version = _environmentProvider.Version });
|
|
}
|
|
}
|
|
} |