You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
816 B
31 lines
816 B
using System;
|
|
using System.Web.Mvc;
|
|
using NzbDrone.Common;
|
|
using NzbDrone.Core.Jobs;
|
|
using NzbDrone.Core.Providers;
|
|
using NzbDrone.Web.Models;
|
|
|
|
namespace NzbDrone.Web.Controllers
|
|
{
|
|
public class SharedController : Controller
|
|
{
|
|
private readonly EnviromentProvider _enviromentProvider;
|
|
|
|
public SharedController(JobProvider jobProvider, EnviromentProvider enviromentProvider)
|
|
{
|
|
_enviromentProvider = enviromentProvider;
|
|
}
|
|
|
|
public ActionResult Index()
|
|
{
|
|
return RedirectToAction("Index", "Series");
|
|
}
|
|
|
|
[ChildActionOnly]
|
|
public ActionResult Footer()
|
|
{
|
|
|
|
return PartialView(new FooterModel { BuildTime = _enviromentProvider.BuildDateTime, Version = _enviromentProvider.Version });
|
|
}
|
|
}
|
|
} |