2011-01-29 06:10:22 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.Mvc;
|
2011-02-10 06:51:04 +00:00
|
|
|
|
using NzbDrone.Core.Providers;
|
2011-01-29 06:10:22 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class SharedController : Controller
|
|
|
|
|
{
|
2011-02-10 06:51:04 +00:00
|
|
|
|
private ITimerProvider _timerProvider;
|
|
|
|
|
|
|
|
|
|
public SharedController(ITimerProvider timerProvider)
|
|
|
|
|
{
|
|
|
|
|
_timerProvider = timerProvider;
|
|
|
|
|
}
|
2011-01-29 06:10:22 +00:00
|
|
|
|
|
|
|
|
|
public ActionResult Index()
|
|
|
|
|
{
|
|
|
|
|
return RedirectToAction("Index", "Series");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ChildActionOnly]
|
|
|
|
|
public ActionResult Footer()
|
|
|
|
|
{
|
2011-02-10 06:51:04 +00:00
|
|
|
|
ViewData["RssTimer"] = _timerProvider.NextRssSyncTime().ToString("yyyyMMddHHmmss");
|
|
|
|
|
//ViewData["RssTimer"] = DateTime.Now.AddMinutes(61).AddSeconds(10).ToString("yyyyMMddHHmmss");
|
2011-01-29 06:10:22 +00:00
|
|
|
|
return PartialView();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|