@Html.ActionLink(T("Install a module").ToString(), "Add", null, new { @class = "button primaryAction" })
@if (Model.Modules.Count() > 0) {
diff --git a/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Index.cshtml b/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Index.cshtml
index 042d40689..e32bea943 100644
--- a/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Index.cshtml
+++ b/src/Orchard.Web/Modules/Orchard.Tags/Views/Admin/Index.cshtml
@@ -24,7 +24,7 @@
diff --git a/src/Orchard.Web/Themes/TheAdmin/Views/Header.ascx b/src/Orchard.Web/Themes/TheAdmin/Views/Header.ascx
deleted file mode 100644
index bdcb0ace4..000000000
--- a/src/Orchard.Web/Themes/TheAdmin/Views/Header.ascx
+++ /dev/null
@@ -1,3 +0,0 @@
-<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %>
-<%: Html.ActionLink(T("Project Orchard").ToString(), "Index", new { Area = "", Controller = "Home" })%>
-<%: Html.ActionLink(T("Your Site").ToString(), "Index", new { Area = "", Controller = "Home" })%>
diff --git a/src/Orchard.Web/Themes/TheAdmin/Views/Header.cshtml b/src/Orchard.Web/Themes/TheAdmin/Views/Header.cshtml
new file mode 100644
index 000000000..45808d798
--- /dev/null
+++ b/src/Orchard.Web/Themes/TheAdmin/Views/Header.cshtml
@@ -0,0 +1,3 @@
+@model dynamic
+@Html.ActionLink(T("Project Orchard").ToString(), "Index", new { Area = "", Controller = "Home" })
+@Html.ActionLink(T("Your Site").ToString(), "Index", new { Area = "", Controller = "Home" })
diff --git a/src/Orchard.Web/Themes/TheAdmin/Views/Layout.ascx b/src/Orchard.Web/Themes/TheAdmin/Views/Layout.ascx
deleted file mode 100644
index 63d5c3d5d..000000000
--- a/src/Orchard.Web/Themes/TheAdmin/Views/Layout.ascx
+++ /dev/null
@@ -1,44 +0,0 @@
-<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %>
-<%@ Import Namespace="Orchard.Security" %>
-<%@ Import Namespace="Orchard.DisplayManagement.Descriptors" %>
-<%@ Import Namespace="Orchard.UI.Resources" %>
-<%@ Import Namespace="Orchard" %>
-<%@ Import Namespace="Orchard.ContentManagement" %>
-<%
-Style.Require("TheAdmin");
-Script.Require("TheAdmin");
-RegisterLink(new LinkEntry { Condition = "lte IE 8", Rel = "stylesheet", Type = "text/css", Href = ResolveUrl("../Styles/ie.css") }.AddAttribute("media", "screen, projection"));
-RegisterLink(new LinkEntry { Condition = "lte IE 6", Rel = "stylesheet", Type = "text/css", Href = ResolveUrl("../Styles/ie6.css") }.AddAttribute("media", "screen, projection"));
- // these are just hacked together to fire existing partials... can change
- Model.Header.Add(Display.Header());
-
- //
- var thisUser = Html.Resolve().GetAuthenticatedUser();
- Model.Header.Add(Display.User(CurrentUser: thisUser), "after");
-
- //
-
-
- // these are just hacked together to fire existing partials... can change
-
- //Model.Zones.AddRenderPartial("header", "Header", Model);
- //Model.Zones.AddRenderPartial("header:after", "User", Model); // todo: (heskew) should be a user display or widget
-%>
-
-
-
-
- <%: Display(Model.Messages) %>
-
-
- <%: Display(Model.Content) %>
-
-
-
-
-<%: Display.DumpShapeTable() %>
diff --git a/src/Orchard.Web/Themes/TheAdmin/Views/Layout.cshtml b/src/Orchard.Web/Themes/TheAdmin/Views/Layout.cshtml
new file mode 100644
index 000000000..099298fa2
--- /dev/null
+++ b/src/Orchard.Web/Themes/TheAdmin/Views/Layout.cshtml
@@ -0,0 +1,42 @@
+@model dynamic
+@using Orchard.Security
+@using Orchard.DisplayManagement.Descriptors
+@using Orchard.UI.Resources
+@using Orchard
+@using Orchard.ContentManagement
+
+@{
+ Style.Require("TheAdmin");
+ Script.Require("TheAdmin");
+ RegisterLink(new LinkEntry { Condition = "lte IE 8", Rel = "stylesheet", Type = "text/css", Href = Url.Content("../Styles/ie.css") }.AddAttribute("media", "screen, projection"));
+ RegisterLink(new LinkEntry { Condition = "lte IE 6", Rel = "stylesheet", Type = "text/css", Href = Url.Content("../Styles/ie6.css") }.AddAttribute("media", "screen, projection"));
+ // these are just hacked together to fire existing partials... can change
+ Model.Header.Add(Display.Header());
+
+ // experimentation
+ var thisUser = Html.Resolve().GetAuthenticatedUser();
+ Model.Header.Add(Display.User(CurrentUser: thisUser), "after");
+
+ // these are just hacked together to fire existing partials... can change
+
+ //Model.Zones.AddRenderPartial("header", "Header", Model);
+ //Model.Zones.AddRenderPartial("header:after", "User", Model); // todo: (heskew) should be a user display or widget
+}
+
+
+
+
+ @Display(Model.Messages)
+
+
+ @Display(Model.Content)
+
+
+
+
+@Display.DumpShapeTable()
diff --git a/src/Orchard.Web/Themes/TheAdmin/Views/Menu.cshtml b/src/Orchard.Web/Themes/TheAdmin/Views/Menu.cshtml
new file mode 100644
index 000000000..c234a20ee
--- /dev/null
+++ b/src/Orchard.Web/Themes/TheAdmin/Views/Menu.cshtml
@@ -0,0 +1,14 @@
+
+ @foreach(var firstLevelMenuItem in Model) {
+ -
+
+
+
+ }
+
\ No newline at end of file
diff --git a/src/Orchard.Web/Themes/TheAdmin/Views/User.ascx b/src/Orchard.Web/Themes/TheAdmin/Views/User.ascx
deleted file mode 100644
index 383633b39..000000000
--- a/src/Orchard.Web/Themes/TheAdmin/Views/User.ascx
+++ /dev/null
@@ -1,4 +0,0 @@
-<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %>
-<% if (Model.CurrentUser != null) {
- %><%: T("User:")%> <%: Model.CurrentUser.UserName %> | <%: Html.ActionLink(T("Logout").ToString(), "LogOff", new { Area = "Orchard.Users", Controller = "Account" }) %>
<%
- } %>
\ No newline at end of file
diff --git a/src/Orchard.Web/Themes/TheAdmin/Views/User.cshtml b/src/Orchard.Web/Themes/TheAdmin/Views/User.cshtml
new file mode 100644
index 000000000..17b7cfb9a
--- /dev/null
+++ b/src/Orchard.Web/Themes/TheAdmin/Views/User.cshtml
@@ -0,0 +1,2 @@
+@model dynamic
+@if (Model.CurrentUser != null) {@T("User:") @Model.CurrentUser.UserName | @Html.ActionLink(T("Logout").ToString(), "LogOff", new { Area = "Orchard.Users", Controller = "Account" })
}
\ No newline at end of file