mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
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:
@@ -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()
|
||||
|
||||
@@ -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")) ) {
|
||||
|
||||
@@ -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" })
|
||||
|
||||
@@ -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")) ) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user