mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
Merge branch '1.10.x' into dev
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -277,7 +277,8 @@ namespace Orchard.ContentManagement {
|
||||
return _contentItemVersionRepository
|
||||
.Fetch(x => x.ContentItemRecord.Id == id)
|
||||
.OrderBy(x => x.Number)
|
||||
.Select(x => Get(x.Id, VersionOptions.VersionRecord(x.Id)));
|
||||
.Select(x => Get(x.Id, VersionOptions.VersionRecord(x.Id)))
|
||||
.Where(ci => ci != null);
|
||||
}
|
||||
|
||||
public IEnumerable<T> GetMany<T>(IEnumerable<int> ids, VersionOptions options, QueryHints hints) where T : class, IContent {
|
||||
@@ -301,6 +302,7 @@ namespace Orchard.ContentManagement {
|
||||
|
||||
var itemsById = contentItemVersionRecords
|
||||
.Select(r => Get(r.ContentItemRecord.Id, options.IsDraftRequired ? options : VersionOptions.VersionRecord(r.Id)))
|
||||
.Where(ci => ci != null)
|
||||
.GroupBy(ci => ci.Id)
|
||||
.ToDictionary(g => g.Key);
|
||||
|
||||
@@ -317,6 +319,7 @@ namespace Orchard.ContentManagement {
|
||||
|
||||
var itemsById = contentItemVersionRecords
|
||||
.Select(r => Get(r.ContentItemRecord.Id, VersionOptions.VersionRecord(r.Id)))
|
||||
.Where(ci => ci != null)
|
||||
.GroupBy(ci => ci.VersionRecord.Id)
|
||||
.ToDictionary(g => g.Key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user