@using Orchard.Blogs.Extensions; @using Orchard.Blogs.Models; @{ Style.Require("BlogsArchives"); Script.Require("BlogsArchives"); IEnumerable> archives = Model.Archives; }

@T("Archives")

@if (archives.Count() > 20) { } else if (archives.Count() > 0) { @Html.UnorderedList(archives, (t, i) => Html.Link(string.Format("{0:MMMM yyyy} ({1})", t.Key.ToDateTime(), t.Value), Url.BlogArchiveMonth((string)Model.BlogPart.Slug, t.Key.Year, t.Key.Month)), "archiveMonthList") } else {
@T("None found")
}