mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
17 lines
396 B
Plaintext
17 lines
396 B
Plaintext
@{
|
|
// odd formatting in this file is to cause more attractive results in the output.
|
|
var items = (IEnumerable<dynamic>)Enumerable.Cast<dynamic>(Model);
|
|
}
|
|
@{
|
|
if (HasText(Model.Text)) {
|
|
@DisplayChildren(Model)
|
|
} else {
|
|
<li><a href="@Model.Href">@Model.Text</a>
|
|
@if (items.Any()) {
|
|
<ul>
|
|
@DisplayChildren(Model)
|
|
</ul>
|
|
}
|
|
</li>
|
|
}
|
|
} |