mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-22 21:02:08 +08:00
UI cleanup pass (progress - Orchard.DevTools (<- just a quick loc pass on that one - not trying to clean it that up, yet))
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045165
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.DevTools.ViewModels.ContentDetailsViewModel>" %>
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<ContentDetailsViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.DevTools.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||
<%@ Import Namespace="System.Reflection" %>
|
||||
<h1><%=Html.TitleForPage(string.Format("{0} Content Type", Model.Item.ContentItem.ContentType), "Content")%></h1>
|
||||
<h3>Content Item</h3>
|
||||
<p>Id:
|
||||
<h1><%=Html.TitleForPage(T("{0} Content Type", Model.Item.ContentItem.ContentType).ToString(), T("Content").ToString())%></h1>
|
||||
<h2><%=_Encoded("Content Item")%></h2>
|
||||
<p>
|
||||
<%=_Encoded("Id:")%>
|
||||
<%=Model.Item.ContentItem.Id %><br />
|
||||
Version:
|
||||
<%=_Encoded("Version:")%>
|
||||
<%=Model.Item.ContentItem.Version %><br />
|
||||
ContentType:
|
||||
<%=Model.Item.ContentItem.ContentType%> <br />
|
||||
DisplayText:
|
||||
<%=_Encoded("ContentType:")%>
|
||||
<%=Model.Item.ContentItem.ContentType %><br />
|
||||
<%=_Encoded("DisplayText:")%>
|
||||
<%=Html.ItemDisplayText(Model.Item) %><br />
|
||||
Links:
|
||||
<%=Html.ItemDisplayLink("view", Model.Item) %> <%=Html.ItemEditLink("edit", Model.Item) %></p>
|
||||
|
||||
<h3>Content Item Parts</h3>
|
||||
<%=_Encoded("Links:")%>
|
||||
<%=Html.ItemDisplayLink(T("view").ToString(), Model.Item) %> <%=Html.ItemEditLink(T("edit").ToString(), Model.Item) %>
|
||||
</p>
|
||||
<h2><%=_Encoded("Content Item Parts")%></h2>
|
||||
<ul>
|
||||
<%foreach (var partType in Model.PartTypes.OrderBy(x => x.Name)) {%>
|
||||
<li><span style="font-weight: bold;">
|
||||
@@ -36,7 +38,7 @@ Links:
|
||||
valueItem = (value as IContent).ContentItem;
|
||||
}
|
||||
if (valueItem != null) {
|
||||
%><%=Html.ActionLink(valueItem.ContentType + " #" + valueItem.Id, "details", new { valueItem.Id }, new { })%><%
|
||||
%><%=Html.ActionLink(T("{0} #{1} v{2}", valueItem.ContentType, valueItem.Id).ToString(), "details", new { valueItem.Id }, new { })%><%
|
||||
}
|
||||
%>
|
||||
<ul style="margin-left: 20px">
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Orchard.DevTools.ViewModels.ContentIndexViewModel>" %>
|
||||
<h1><%=Html.TitleForPage("Content") %></h1>
|
||||
<h2>Content Types</h2>
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<ContentIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.DevTools.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage(T("Content").ToString()) %></h1>
|
||||
<h2><%=_Encoded("Content Types")%></h2>
|
||||
<ul>
|
||||
<%foreach(var item in Model.Types.OrderBy(x=>x.Name)){%>
|
||||
<li><%=Html.Encode(item.Name) %> </li>
|
||||
<li><%=Html.Encode(item.Name) %></li>
|
||||
<%}%>
|
||||
</ul>
|
||||
|
||||
<h2>Content Items</h2>
|
||||
<h2><%=_Encoded("Content Items")%></h2>
|
||||
<ul>
|
||||
<%foreach(var item in Model.Items.OrderBy(x=>x.Id)){%>
|
||||
<li><%=Html.ActionLink(item.Id+": "+item.ContentType, "details", "content", new{item.Id},new{}) %>
|
||||
<%=Html.ItemDisplayLink("view", item) %>
|
||||
<%=Html.ItemEditLink("edit", item) %></li>
|
||||
<li>
|
||||
<%=Html.ActionLink(T("{0}: {1}", item.Id, item.ContentType).ToString(), "details", "content", new{item.Id},new{}) %>
|
||||
<%=Html.ItemDisplayLink(T("view").ToString(), item) %>
|
||||
<%=Html.ItemEditLink(T("edit").ToString(), item) %>
|
||||
</li>
|
||||
<%}%>
|
||||
</ul>
|
||||
@@ -1,5 +1,6 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ShowDebugLink>" %>
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ShowDebugLink>" %>
|
||||
<%@ Import Namespace="Orchard.DevTools.Models" %>
|
||||
<div class="debug message">
|
||||
DevTools: showing
|
||||
<%= Html.ActionLink(Model.ContentItem.ContentType + " #" + Model.ContentItem.Id + " v" + Model.ContentItem.Version, "details", "content", new { area = "Orchard.DevTools", Model.ContentItem.Id, Model.ContentItem.Version }, new { })%></div>
|
||||
<div class="debug message"><%=T(
|
||||
"DevTools: editing {0}",
|
||||
Html.ActionLink(T("{0} #{1} v{2}", Model.ContentItem.ContentType, Model.ContentItem.Id, Model.ContentItem.Version).ToString(), "details", "content", new { area = "Orchard.DevTools", Model.ContentItem.Id, Model.ContentItem.Version }, new { })
|
||||
) %></div>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ShowDebugLink>" %>
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ShowDebugLink>" %>
|
||||
<%@ Import Namespace="Orchard.DevTools.Models" %>
|
||||
<% if (Model.ContentItem.Id > 0) { %>
|
||||
<div class="debug message">
|
||||
DevTools: editing
|
||||
<%= Html.ActionLink(Model.ContentItem.ContentType + " #" + Model.ContentItem.Id + " v" + Model.ContentItem.Version, "details", "content", new { area = "Orchard.DevTools", Model.ContentItem.Id, Model.ContentItem.Version }, new { })%></div>
|
||||
<div class="debug message"><%=T(
|
||||
"DevTools: editing {0}",
|
||||
Html.ActionLink(T("{0} #{1} v{2}", Model.ContentItem.ContentType, Model.ContentItem.Id, Model.ContentItem.Version).ToString(), "details", "content", new { area = "Orchard.DevTools", Model.ContentItem.Id, Model.ContentItem.Version }, new { })
|
||||
) %></div>
|
||||
<% } %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BaseViewModel>" %>
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<BaseViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<h1><%=Html.TitleForPage("Dev Tools") %></h1>
|
||||
<p><%=Html.ActionLink("Contents", "Index", "Content") %></p>
|
||||
<p><%=Html.ActionLink("Test Unauthorized Request", "NotAuthorized", "Home")%></p>
|
||||
<h1><%=Html.TitleForPage(T("Dev Tools").ToString()) %></h1>
|
||||
<p><%=Html.ActionLink(T("Contents").ToString(), "Index", "Content") %></p>
|
||||
<p><%=Html.ActionLink(T("Test Unauthorized Request").ToString(), "NotAuthorized", "Home")%></p>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace Orchard.UI.PageClass {
|
||||
public interface IPageClassBuilder : IDependency {
|
||||
void AddClassNames(params object[] titleParts);
|
||||
void AddClassNames(params object[] classNames);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user