Blog Recent Posts, Archives, Tag Cloud "no data" msgs

Fixes #7168, Fixes #7169, Fixes #7170
This commit is contained in:
Matthew Harris
2016-10-09 12:19:46 +01:00
committed by Sipke Schoorstra
parent 0ae205c987
commit cf81574552
2 changed files with 9 additions and 11 deletions

View File

@@ -37,6 +37,6 @@
@Html.UnorderedList(archives, (t, i) => Html.Link(Html.Raw(string.Format("{0} {2} ({1})", monthNames[t.Key.ToDateTime().Month - 1], t.Value, t.Key.ToDateTime().Year)), Url.BlogArchiveMonth((BlogPart)Model.Blog, t.Key.Year, t.Key.Month)), "archiveMonthList")
}
else {
<div class="message info">@T("None found")</div>
<p>@T("There are no posts in the archives.")</p>
}
</div>

View File

@@ -1,7 +1,7 @@
@using Orchard.Tags.Models
<ul class="tag-cloud">
@if (((IEnumerable<object>)Model.TagCounts).Any()) {
foreach (TagCount tagCount in Model.TagCounts) {
@if (((IEnumerable<object>)Model.TagCounts).Any()) {
<ul class="tag-cloud">
@foreach (TagCount tagCount in Model.TagCounts) {
<li class="tag-cloud-tag tag-cloud-tag-@tagCount.Bucket">
@Html.ActionLink(tagCount.TagName, "Search", "Home", new {
area = "Orchard.Tags",
@@ -10,10 +10,8 @@
)
</li>
}
}
else {
<li>
@T("There are no tags to display.")
</li>
}
</ul>
</ul>
}
else {
<p>@T("There are no tags to display.")</p>
}