mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Some minor post-mvc3 beta upgrade fixes
--HG-- branch : dev
This commit is contained in:
BIN
lib/aspnetmvc/Microsoft.Web.Infrastructure.dll
Normal file
BIN
lib/aspnetmvc/Microsoft.Web.Infrastructure.dll
Normal file
Binary file not shown.
@@ -1,7 +1,7 @@
|
|||||||
@model BodyDisplayViewModel
|
@model BodyDisplayViewModel
|
||||||
@using Orchard.Core.Common.ViewModels;
|
@using Orchard.Core.Common.ViewModels;
|
||||||
@/* begin: knowingly broken HTML (hence the ManageWrapperPre and ManageWrapperPost templates)
|
@* begin: knowingly broken HTML (hence the ManageWrapperPre and ManageWrapperPost templates)
|
||||||
we need "wrapper templates" (among other functionality) in the future of UI composition
|
we need "wrapper templates" (among other functionality) in the future of UI composition
|
||||||
please do not delete or the front end will be broken when the user is authenticated. */
|
please do not delete or the front end will be broken when the user is authenticated. *@
|
||||||
</div>
|
</div>
|
||||||
@/* begin: knowingly broken HTML */
|
@* begin: knowingly broken HTML *@
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
@model BodyDisplayViewModel
|
@model BodyDisplayViewModel
|
||||||
@using Orchard.Core.Common.ViewModels;
|
@using Orchard.Core.Common.ViewModels;
|
||||||
@/*//doing excerpt generation on the way out for now so we don't stick ourselves with needing to regen excerpts for existing data
|
@*doing excerpt generation on the way out for now so we don't stick ourselves with needing to regen excerpts for existing data
|
||||||
//also, doing this here, inline, until we have a pluggable processing model (both in and out)
|
also, doing this here, inline, until we have a pluggable processing model (both in and out)
|
||||||
//also, ...this is ugly*/
|
also, ...this is ugly *@
|
||||||
@{
|
@{
|
||||||
var body = new HtmlString(Html.Excerpt(Model.Html.ToString(), 200).ToString().Replace(Environment.NewLine, "</p>" + Environment.NewLine + "<p>"));
|
var body = new HtmlString(Html.Excerpt(Model.Html.ToString(), 200).ToString().Replace(Environment.NewLine, "</p>" + Environment.NewLine + "<p>"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@model SettingsDictionary
|
@model SettingsDictionary
|
||||||
@using Orchard.ContentManagement.MetaData.Models;
|
@using Orchard.ContentManagement.MetaData.Models;
|
||||||
@if (Model.Any()) {
|
@if (Model.Any()) {
|
||||||
@/*<h4>@T("Global Settings")</h4>*/
|
@*<h4>@T("Global Settings")</h4>*@
|
||||||
<dl class="settings">@foreach (var setting in Model) {
|
<dl class="settings">@foreach (var setting in Model) {
|
||||||
<dt>@setting.Key</dt>
|
<dt>@setting.Key</dt>
|
||||||
<dd>@setting.Value</dd>}
|
<dd>@setting.Value</dd>}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<col id="Edit" />
|
<col id="Edit" />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<th scope="col"> ↓@/*todo: (heskew) something more appropriate for "this applies to the bulk actions*/</th>
|
<th scope="col"> ↓@*todo: (heskew) something more appropriate for "this applies to the bulk actions*@</th>
|
||||||
<th scope="col">@T("Name")</th>
|
<th scope="col">@T("Name")</th>
|
||||||
<th scope="col"></th>
|
<th scope="col"></th>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
Html.AddPageClassNames(new[]{"icanhassidebar"});
|
Html.AddPageClassNames(new[]{"icanhassidebar"});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@Model.TitleFromMenu
|
||||||
<div id="layout-wrapper">
|
<div id="layout-wrapper">
|
||||||
@Display.User()
|
@Display.User()
|
||||||
<header id="layout-header">
|
<header id="layout-header">
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
<!-- Model is Model.Menu from the layout (Page.Menu) -->
|
<!-- Model is Model.Menu from the layout (Page.Menu) -->
|
||||||
|
@{
|
||||||
|
Layout.TitleFromMenu = "hi there!";
|
||||||
|
}
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
@{
|
@{
|
||||||
// these should move somewhere else
|
// these should move somewhere else
|
||||||
|
|||||||
@@ -16,13 +16,15 @@ namespace Orchard.Mvc.ViewEngines.Razor {
|
|||||||
public abstract class WebViewPage<TModel> : System.Web.Mvc.WebViewPage<TModel>, IOrchardViewPage {
|
public abstract class WebViewPage<TModel> : System.Web.Mvc.WebViewPage<TModel>, IOrchardViewPage {
|
||||||
private ScriptRegister _scriptRegister;
|
private ScriptRegister _scriptRegister;
|
||||||
private ResourceRegister _stylesheetRegister;
|
private ResourceRegister _stylesheetRegister;
|
||||||
private object _display;
|
|
||||||
private object _new;
|
|
||||||
private Localizer _localizer = NullLocalizer.Instance;
|
private Localizer _localizer = NullLocalizer.Instance;
|
||||||
|
private object _display;
|
||||||
|
private object _layout;
|
||||||
private WorkContext _workContext;
|
private WorkContext _workContext;
|
||||||
|
private object _new;
|
||||||
|
|
||||||
public Localizer T { get { return _localizer; } }
|
public Localizer T { get { return _localizer; } }
|
||||||
public dynamic Display { get { return _display; } }
|
public dynamic Display { get { return _display; } }
|
||||||
|
public dynamic Layout { get { return _layout; } }
|
||||||
public WorkContext WorkContext { get { return _workContext; } }
|
public WorkContext WorkContext { get { return _workContext; } }
|
||||||
|
|
||||||
public dynamic New { get { return _new; } }
|
public dynamic New { get { return _new; } }
|
||||||
@@ -73,6 +75,7 @@ namespace Orchard.Mvc.ViewEngines.Razor {
|
|||||||
|
|
||||||
_localizer = LocalizationUtilities.Resolve(ViewContext, VirtualPath);
|
_localizer = LocalizationUtilities.Resolve(ViewContext, VirtualPath);
|
||||||
_display = DisplayHelperFactory.CreateHelper(ViewContext, this);
|
_display = DisplayHelperFactory.CreateHelper(ViewContext, this);
|
||||||
|
_layout = _workContext.Layout;
|
||||||
_new = ShapeHelperFactory.CreateHelper();
|
_new = ShapeHelperFactory.CreateHelper();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -102,6 +102,9 @@
|
|||||||
<Reference Include="Microsoft.Scripting">
|
<Reference Include="Microsoft.Scripting">
|
||||||
<HintPath>..\..\lib\dlr\Microsoft.Scripting.dll</HintPath>
|
<HintPath>..\..\lib\dlr\Microsoft.Scripting.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Web.Infrastructure">
|
||||||
|
<HintPath>..\..\lib\aspnetmvc\Microsoft.Web.Infrastructure.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
|
<Reference Include="NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\lib\fluentnhibernate\NHibernate.dll</HintPath>
|
<HintPath>..\..\lib\fluentnhibernate\NHibernate.dll</HintPath>
|
||||||
|
|||||||
Reference in New Issue
Block a user