Delegating title positioning to Layout.cshtml.

--HG--
branch : dev
rename : src/Orchard.Web/Themes/TheAdmin/Views/BeforeContent.cshtml => src/Orchard.Web/Themes/TheAdmin/Views/Title.cshtml
This commit is contained in:
andrerod
2011-02-17 16:27:21 -08:00
parent fe5ef56ed9
commit 7ffb7e02d4
65 changed files with 106 additions and 89 deletions

View File

@@ -1,6 +1,6 @@
@model Orchard.Packaging.ViewModels.PackagingAddSourceViewModel
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Add a Feed").ToString()), "5");
@{ Layout.Title = T("Add a Feed").ToString(); }
@using ( Html.BeginFormAntiForgeryPost(Url.Action("AddSource")) ) {
@Html.ValidationSummary()

View File

@@ -11,7 +11,7 @@
pageSizes.Add(defaultPageSize);
}
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: "Modules"), "5");
Layout.Title = T("Modules").ToString();
}
@using ( Html.BeginFormAntiForgeryPost(Url.Action("Modules", "Gallery")) ) {

View File

@@ -1,6 +1,6 @@
@model Orchard.Packaging.ViewModels.PackagingSourcesViewModel
@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Gallery Feeds").ToString()), "5");
@{ Layout.Title = T("Gallery Feeds").ToString(); }
<div class="manage">
@Html.ActionLink(T("Add Feed").Text, "AddSource", new { }, new { @class = "button primaryAction" })

View File

@@ -11,7 +11,7 @@
pageSizes.Add(defaultPageSize);
}
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: "Themes"), "5");
Layout.Title = T("Themes").ToString();
}
@using ( Html.BeginFormAntiForgeryPost(Url.Action("Themes", "Gallery")) ) {

View File

@@ -1,5 +1,5 @@
@{
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Install a Module").ToString()), "5");
Layout.Title = T("Install a Module").ToString();
using (Html.BeginFormAntiForgeryPost(Url.Action("AddModule", new { area = "Orchard.Packaging", returnUrl = HttpContext.Current.Request["returnUrl"] }), FormMethod.Post, new { enctype = "multipart/form-data" })) {
Html.ValidationSummary();

View File

@@ -1,5 +1,5 @@
@{
WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Install a Theme").ToString()), "5");
Layout.Title = T("Install a Theme").ToString();
using (Html.BeginFormAntiForgeryPost(Url.Action("AddTheme", new { area = "Orchard.Packaging", returnUrl = HttpContext.Current.Request["returnUrl"] }), FormMethod.Post, new { enctype = "multipart/form-data" })) {
Html.ValidationSummary();