Some page title cleanup. Should about do it for now.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044514
This commit is contained in:
skewed
2009-12-23 17:38:00 +00:00
parent fd2b62437f
commit 8c0355ec57
17 changed files with 28 additions and 45 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ page width. Or, you can specify an exact pixel width. */
padding: 0; padding: 0;
} }
#header h1 #title
{ {
font-weight: bold; font-weight: bold;
padding: 5px 0; padding: 5px 0;
@@ -3,7 +3,7 @@
Html.RegisterStyle("site.css"); %> Html.RegisterStyle("site.css"); %>
<div class="page"> <div class="page">
<div id="header"> <div id="header">
<div id="title"><h1><%=Html.TitleForPage(Html.SiteName()) %></h1></div><% <div id="title"><%=Html.TitleForPage(Html.SiteName()) %></div><%
Html.Zone("header"); Html.Zone("header");
Html.Zone("menu"); %> Html.Zone("menu"); %>
<%-- todo:(nheskew) this will need to all go in the header zone (user widget) --%> <%-- todo:(nheskew) this will need to all go in the header zone (user widget) --%>
@@ -1,7 +1,6 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogsViewModel>" %> <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BlogsViewModel>" %>
<%@ Import Namespace="Orchard.Blogs.ViewModels"%> <%@ Import Namespace="Orchard.Blogs.ViewModels"%>
<% Html.AddTitleParts("Blogs"); %> <h1><%=Html.TitleForPage("Blogs")%></h1>
<h1>Blogs</h1>
<p>All of the blogs.</p><% <p>All of the blogs.</p><%
if (Model.Blogs.Count() > 0) { %> if (Model.Blogs.Count() > 0) { %>
<%=Html.UnorderedList(Model.Blogs, (b, i) => Html.DisplayForItem(b).ToHtmlString(), "blogs contentItems") %><% <%=Html.UnorderedList(Model.Blogs, (b, i) => Html.DisplayForItem(b).ToHtmlString(), "blogs contentItems") %><%
@@ -2,10 +2,9 @@
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%> <%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
<%@ Import Namespace="Orchard.Blogs.Extensions"%> <%@ Import Namespace="Orchard.Blogs.Extensions"%>
<%@ Import Namespace="Orchard.Blogs.Models"%> <%@ Import Namespace="Orchard.Blogs.Models"%>
<% Html.AddTitleParts(Model.Item.Name); %>
<%-- todo: (heskew) get what actions we can out of the h2 :| --%> <%-- todo: (heskew) get what actions we can out of the h2 :| --%>
<h2 class="withActions"> <h2 class="withActions">
<a href="<%=Url.BlogForAdmin(Model.Item.Slug) %>"><%=Html.Encode(Model.Item.Name) %></a> <a href="<%=Url.BlogForAdmin(Model.Item.Slug) %>"><%=Html.TitleForPage(Model.Item.Name) %></a>
<a href="<%=Url.BlogEdit(Model.Item.Slug) %>" class="ibutton edit" title="Edit Blog">Edit Blog</a> <a href="<%=Url.BlogEdit(Model.Item.Slug) %>" class="ibutton edit" title="Edit Blog">Edit Blog</a>
<span class="actions"><span class="destruct"><a href="<%=Url.BlogDelete(Model.Item.Slug) %>" class="ibutton remove" title="Remove Blog">Remove Blog</a></span></span></h2> <span class="actions"><span class="destruct"><a href="<%=Url.BlogDelete(Model.Item.Slug) %>" class="ibutton remove" title="Remove Blog">Remove Blog</a></span></span></h2>
<p><%=Model.Item.Description%></p> <p><%=Model.Item.Description%></p>
@@ -2,9 +2,8 @@
<%@ Import Namespace="Orchard.Blogs.Extensions"%> <%@ Import Namespace="Orchard.Blogs.Extensions"%>
<%@ Import Namespace="Orchard.Blogs.Models"%> <%@ Import Namespace="Orchard.Blogs.Models"%>
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%> <%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
<% Html.AddTitleParts(Model.Item.Name); %>
<div class="manage"><a href="<%=Url.BlogEdit(Model.Item.Slug) %>" class="ibutton edit">edit</a></div> <div class="manage"><a href="<%=Url.BlogEdit(Model.Item.Slug) %>" class="ibutton edit">edit</a></div>
<h1><%=Html.Encode(Model.Item.Name) %></h1> <h1><%=Html.TitleForPage(Model.Item.Name) %></h1>
<div><%=Html.Encode(Model.Item.Description) %></div> <div><%=Html.Encode(Model.Item.Description) %></div>
<%--TODO: (erikpo) Need to figure out which zones should be displayed in this template--%> <%--TODO: (erikpo) Need to figure out which zones should be displayed in this template--%>
<%=Html.DisplayZonesAny() %> <%=Html.DisplayZonesAny() %>
@@ -2,9 +2,8 @@
<%@ Import Namespace="Orchard.ContentManagement.ViewModels"%> <%@ Import Namespace="Orchard.ContentManagement.ViewModels"%>
<%@ Import Namespace="Orchard.Blogs.Extensions"%> <%@ Import Namespace="Orchard.Blogs.Extensions"%>
<%@ Import Namespace="Orchard.Blogs.Models"%> <%@ Import Namespace="Orchard.Blogs.Models"%>
<% Html.AddTitleParts(Model.Item.Title); %>
<div class="manage"><a href="<%=Url.BlogPostEdit(Model.Item.Blog.Slug, Model.Item.Slug) %>" class="ibutton edit">edit</a></div> <div class="manage"><a href="<%=Url.BlogPostEdit(Model.Item.Blog.Slug, Model.Item.Slug) %>" class="ibutton edit">edit</a></div>
<h1><%=Html.Encode(Model.Item.Title)%></h1> <h1><%=Html.TitleForPage(Model.Item.Title)%></h1>
<div class="metadata"> <div class="metadata">
<% if (Model.Item.Creator != null) <% if (Model.Item.Creator != null)
{ {
@@ -1,17 +1,12 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.DevTools.ViewModels.ContentDetailsViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.DevTools.ViewModels.ContentDetailsViewModel>" %>
<%@ Import Namespace="Orchard.ContentManagement"%> <%@ Import Namespace="Orchard.ContentManagement"%>
<%@ Import Namespace="System.Reflection" %> <%@ Import Namespace="System.Reflection" %>
<h1><%=Html.TitleForPage(string.Format("{0} Content Type", Model.Item.ContentItem.ContentType), "Content")%></h1>
<h3>Content Item</h3> <h3>Content Item</h3>
<p> <p>Id:
Id:
<%=Model.Item.ContentItem.Id %></p> <%=Model.Item.ContentItem.Id %></p>
<p> <p>ContentType:
ContentType:
<%=Model.Item.ContentItem.ContentType%> <%=Html.ItemDisplayLink(Model.Item) %> <%=Html.ItemEditLink("edit", Model.Item) %></p> <%=Model.Item.ContentItem.ContentType%> <%=Html.ItemDisplayLink(Model.Item) %> <%=Html.ItemEditLink("edit", Model.Item) %></p>
<h3>Content Item Parts</h3> <h3>Content Item Parts</h3>
<ul> <ul>
<%foreach (var partType in Model.PartTypes.OrderBy(x => x.Name)) {%> <%foreach (var partType in Model.PartTypes.OrderBy(x => x.Name)) {%>
@@ -1,14 +1,13 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.DevTools.ViewModels.ContentIndexViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.DevTools.ViewModels.ContentIndexViewModel>" %>
<h1><%=Html.TitleForPage("Content") %></h1>
<h2>Content Types</h2>
<h3>Content Types</h3>
<ul> <ul>
<%foreach(var item in Model.Types.OrderBy(x=>x.Name)){%> <%foreach(var item in Model.Types.OrderBy(x=>x.Name)){%>
<li><%=Html.Encode(item.Name) %> </li> <li><%=Html.Encode(item.Name) %> </li>
<%}%> <%}%>
</ul> </ul>
<h3>Content Items</h3> <h2>Content Items</h2>
<ul> <ul>
<%foreach(var item in Model.Items.OrderBy(x=>x.Id)){%> <%foreach(var item in Model.Items.OrderBy(x=>x.Id)){%>
<li><%=Html.ActionLink(item.Id+": "+item.ContentType, "details", "content", new{item.Id},new{}) %> <li><%=Html.ActionLink(item.Id+": "+item.ContentType, "details", "content", new{item.Id},new{}) %>
@@ -16,4 +15,3 @@
<%=Html.ItemEditLink("edit", item) %></li> <%=Html.ItemEditLink("edit", item) %></li>
<%}%> <%}%>
</ul> </ul>
@@ -1,4 +1,4 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BaseViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BaseViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels"%> <%@ Import Namespace="Orchard.Mvc.ViewModels"%>
<h1><%=Html.TitleForPage("Dev Tools") %></h1>
<p><%=Html.ActionLink("Contents", "Index", "Content") %></p> <p><%=Html.ActionLink("Contents", "Index", "Content") %></p>
@@ -1,9 +1,7 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageCreateViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageCreateViewModel>" %>
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %> <%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
<h3> <h1><%=Html.TitleForPage("Create Page")%></h1>
Create Page</h3>
<%using (Html.BeginFormAntiForgeryPost()) { %> <%using (Html.BeginFormAntiForgeryPost()) { %>
<%=Html.LabelFor(x => x.Name)%><%=Html.EditorFor(x => x.Name)%> <%=Html.LabelFor(x => x.Name)%><%=Html.EditorFor(x => x.Name)%>
<input type="submit" name="submit" value="Create" /> <input type="submit" name="submit" value="Create" />
<%} %> <% } %>
@@ -1,8 +1,7 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageEditViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageEditViewModel>" %>
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %> <%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
<h3> <h1><%=Html.TitleForPage("Edit Page")%></h1>
Edit Page</h3>
<%using (Html.BeginFormAntiForgeryPost()) { %> <%using (Html.BeginFormAntiForgeryPost()) { %>
<%=Html.EditorForItem(Model.Page) %> <%=Html.EditorForItem(Model.Page) %>
<input type="submit" name="submit" value="Save" /> <input type="submit" name="submit" value="Save" />
<%} %> <% } %>
@@ -1,10 +1,7 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageIndexViewModel>" %>
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %> <%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
<h3> <h1><%=Html.TitleForPage("Sandbox Pages")%></h1>
Sandbox Pages</h3> <p><%=Html.ActionLink("Create new page", "create") %></p>
<p>
<%=Html.ActionLink("Create new page", "create") %></p>
<%foreach (var item in Model.Pages) {%> <%foreach (var item in Model.Pages) {%>
<%=Html.DisplayForItem(item) %> <%=Html.DisplayForItem(item) %>
<%}%> <%}%>
@@ -1,4 +1,3 @@
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageShowViewModel>" %> <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<PageShowViewModel>" %>
<%@ Import Namespace="Orchard.Sandbox.ViewModels" %> <%@ Import Namespace="Orchard.Sandbox.ViewModels" %>
<%= Html.DisplayForItem(Model.Page) %> <%= Html.DisplayForItem(Model.Page) %>
@@ -97,7 +97,7 @@ page width. Or, you can specify an exact pixel width. */
padding: 0; padding: 0;
} }
#header h1 #title
{ {
font-weight: bold; font-weight: bold;
padding: 5px 0; padding: 5px 0;
@@ -4,7 +4,7 @@ Html.RegisterStyle("site.css");
%> %>
<div class="page"> <div class="page">
<div id="header"> <div id="header">
<div id="title"><h1><%=Html.TitleForPage(Html.SiteName()) %></h1></div><% <div id="title"><%=Html.TitleForPage(Html.SiteName()) %></div><%
Html.Zone("header"); Html.Zone("header");
Html.Zone("menu"); %> Html.Zone("menu"); %>
<%-- todo:(nheskew) this will need to all go in the header zone (user widget) --%> <%-- todo:(nheskew) this will need to all go in the header zone (user widget) --%>
+1 -1
View File
@@ -1,3 +1,3 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<h2><%=Html.TitleForPage("About") %></h2> <h1><%=Html.TitleForPage("About") %></h1>
<p>Put content here.</p> <p>Put content here.</p>
+2 -1
View File
@@ -1,3 +1,4 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<h2><%= Html.Encode(ViewData["Message"]) %></h2> <h1><%=Html.Encode(Html.SiteName()) %></h1>
<h2><%=Html.Encode(ViewData["Message"]) %></h2>
<p>To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.</p> <p>To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.</p>