Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions src/Orchard.Web/Modules/Orchard.Tags/Views/Parts/TagCloud.cshtml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
@using Orchard.Tags.Models
@using Orchard.Tags.Models
<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",
tagName = tagCount.TagName
}, null
)
</li>
}
</ul>
@if (((IEnumerable<object>)Model.TagCounts).Any()) {
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",
tagName = tagCount.TagName
}, null
)
</li>
}
}
else {
<li>
@T("There are no tags to display.")
</li>
}
</ul>