mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
Some post initial themeing work housekeeping
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044245
This commit is contained in:
@@ -145,6 +145,8 @@
|
||||
<Content Include="Themes\Views\Admin\Install.aspx" />
|
||||
<Content Include="Themes\Views\Shared\document.aspx" />
|
||||
<Content Include="Themes\Views\Shared\layout.ascx" />
|
||||
<Content Include="Themes\Views\Shared\user.ascx" />
|
||||
<Content Include="Themes\Views\Shared\menu.ascx" />
|
||||
<Content Include="Themes\Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title><%=Html.Title("!!Safe Mode!!")%></title><%
|
||||
<title><%=Html.Title() %></title><%
|
||||
Html.Zone("head", ":metas :styles :scripts"); %>
|
||||
</head>
|
||||
<body><%
|
||||
|
@@ -1,13 +1,17 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %><%
|
||||
Html.RegisterStyle("site.css");
|
||||
Html.RegisterStyle("site.css"); %>
|
||||
<div class="page">
|
||||
<div id="header"><%
|
||||
<div id="header">
|
||||
<div id="title"><h1>My MVC Application</h1></div><%
|
||||
Html.Zone("header");
|
||||
Html.Zone("menu");
|
||||
%></div>
|
||||
Html.Zone("menu"); %>
|
||||
<%-- todo:(nheskew) this will need to all go in the header zone (user widget) --%>
|
||||
<% Html.Include("user"); %>
|
||||
<%-- todo:(nheskew) this will need to be a generated menu --%>
|
||||
<% Html.Include("menu"); %>
|
||||
</div>
|
||||
<div id="main"><%
|
||||
Html.ZoneBody("content");
|
||||
%> <div id="footer"><%
|
||||
|
9
src/Orchard.Web/Core/Themes/Views/Shared/menu.ascx
Normal file
9
src/Orchard.Web/Core/Themes/Views/Shared/menu.ascx
Normal file
@@ -0,0 +1,9 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
<div id="menucontainer">
|
||||
<ul id="menu">
|
||||
<li><%= Html.ActionLink("Home", "Index", "Home", new {Area = ""}, new {})%></li>
|
||||
<li><%= Html.ActionLink("About", "About", "Home", new {Area = ""}, new {})%></li>
|
||||
<li><%= Html.ActionLink("Blogs", "List", "Blog", new {Area = "Orchard.Blogs"}, new {})%></li>
|
||||
<li><%= Html.ActionLink("Admin", "ListForAdmin", new {Area = "Orchard.Blogs", Controller = "Blog"})%></li>
|
||||
</ul>
|
||||
</div>
|
8
src/Orchard.Web/Core/Themes/Views/Shared/user.ascx
Normal file
8
src/Orchard.Web/Core/Themes/Views/Shared/user.ascx
Normal file
@@ -0,0 +1,8 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
<div id="logindisplay"><%
|
||||
if (Request.IsAuthenticated) {
|
||||
%>Welcome <strong><%=Html.Encode(Page.User.Identity.Name) %></strong>! [<%=Html.ActionLink("Log Off", "LogOff", "Account", new { area = "" }, new { }) %>]<%
|
||||
} else {
|
||||
%>[<%=Html.ActionLink("Log On", "LogOn", "Account", new{area=""}, new{}) %>]<%
|
||||
}
|
||||
%></div>
|
Reference in New Issue
Block a user