2011-04-20 03:20:20 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Web.Mvc;
|
2011-02-10 07:51:04 +01:00
|
|
|
|
using NzbDrone.Core.Providers;
|
2011-04-20 03:20:20 +02:00
|
|
|
|
using NzbDrone.Core.Providers.Timers;
|
2011-01-29 07:10:22 +01:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class SharedController : Controller
|
|
|
|
|
{
|
2011-04-10 04:44:01 +02:00
|
|
|
|
private readonly TimerProvider _timerProvider;
|
2011-02-10 07:51:04 +01:00
|
|
|
|
|
2011-04-08 17:20:45 +02:00
|
|
|
|
public SharedController(TimerProvider timerProvider)
|
2011-02-10 07:51:04 +01:00
|
|
|
|
{
|
|
|
|
|
_timerProvider = timerProvider;
|
|
|
|
|
}
|
2011-01-29 07:10:22 +01:00
|
|
|
|
|
|
|
|
|
public ActionResult Index()
|
|
|
|
|
{
|
|
|
|
|
return RedirectToAction("Index", "Series");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ChildActionOnly]
|
|
|
|
|
public ActionResult Footer()
|
|
|
|
|
{
|
2011-04-20 03:20:20 +02:00
|
|
|
|
ViewData["RssTimer"] = DateTime.Now.ToString("yyyyMMddHHmmss");
|
2011-02-10 07:51:04 +01:00
|
|
|
|
//ViewData["RssTimer"] = DateTime.Now.AddMinutes(61).AddSeconds(10).ToString("yyyyMMddHHmmss");
|
2011-01-29 07:10:22 +01:00
|
|
|
|
return PartialView();
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-04-10 04:44:01 +02:00
|
|
|
|
}
|