mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 03:40:56 +08:00
Blog Recent Posts, Archives, Tag Cloud "no data" msgs
Fixes #7168, Fixes #7169, Fixes #7170
This commit is contained in:
committed by
Sipke Schoorstra
parent
0ae205c987
commit
cf81574552
@@ -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>
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user