Theming items

Changing the extension to hide several old files
Adjusting BuildDisplayModel family to return shape for display

--HG--
branch : theming
This commit is contained in:
Louis DeJardin
2010-09-07 11:53:57 -07:00
parent 2056144c62
commit 02e46ba310
29 changed files with 113 additions and 75 deletions

View File

@@ -0,0 +1,3 @@
<ul id="Menu-@Model.MenuName" class="Menu Menu-@Model.MenuName">
@foreach(var item in Model) {@Display(item);}
</ul><!-- /Menu-@Model.MenuName -->

View File

@@ -0,0 +1,9 @@
@{
// odd formatting in this file is to cause more attractive results in the output.
var items = (IEnumerable<dynamic>)Enumerable.Cast<dynamic>(Model);
}
<li><a href="@Model.Href">@Model.Text</a>@{ if (items.Any()) {
<ul>
@foreach(var item in Model) {@Display(item);}
</ul>}}
</li>