mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00

Everything for the new part, content type and widget are there except for what makes them useful (back-end logic & data and complete shape templates) --HG-- branch : dev
14 lines
405 B
Plaintext
14 lines
405 B
Plaintext
@{
|
|
IEnumerable<object> queriedContents = Model.ContentItems;
|
|
Model.ContentItems.Classes.Add("content-items");
|
|
Model.ContentItems.Classes.Add("queried-contents");
|
|
}
|
|
@if (queriedContents != null && queriedContents.Count() > 0) {
|
|
@Display(Model.ContentItems)
|
|
if (Model.Pager != null) {
|
|
@Display(Model.Pager)
|
|
}
|
|
}
|
|
else {
|
|
<p>@T("There are no contents.")</p>
|
|
} |