mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Use new ActionLink extension method.
This commit is contained in:
@@ -5,17 +5,17 @@
|
|||||||
}
|
}
|
||||||
<div class="item-properties actions">
|
<div class="item-properties actions">
|
||||||
<p>
|
<p>
|
||||||
@Html.ActionLink(T("{0} Properties", Html.Raw((string)Model.ContainerDisplayName)).Text, "Edit", new { Area = "Contents", Id = (int)Model.ContainerId, ReturnUrl = Html.ViewContext.HttpContext.Request.RawUrl })
|
@Html.ActionLink(T("{0} Properties", (string)Model.ContainerDisplayName), "Edit", new { Area = "Contents", Id = (int)Model.ContainerId, ReturnUrl = Html.ViewContext.HttpContext.Request.RawUrl })
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="manage">
|
<div class="manage">
|
||||||
@if (itemContentTypes.Any()) {
|
@if (itemContentTypes.Any()) {
|
||||||
foreach (var contentType in itemContentTypes) {
|
foreach (var contentType in itemContentTypes) {
|
||||||
@Html.ActionLink(T("New {0}", Html.Raw(contentType.DisplayName)).Text, "Create", "Admin", new { area = "Contents", id = contentType.Name, containerId }, new { @class = "button primaryAction create-content" })
|
@Html.ActionLink(T("New {0}", contentType.DisplayName), "Create", "Admin", new { area = "Contents", id = contentType.Name, containerId }, new { @class = "button primaryAction create-content" })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@Html.ActionLink(T("New Content").ToString(), "Create", "Admin", new { area = "Contents", containerId }, new { @class = "button primaryAction create-content" })
|
@Html.ActionLink(T("New Content"), "Create", "Admin", new { area = "Contents", containerId }, new { @class = "button primaryAction create-content" })
|
||||||
}
|
}
|
||||||
<a id="chooseItems" href="#" class="button primaryAction">@T("Choose Items")</a>
|
<a id="chooseItems" href="#" class="button primaryAction">@T("Choose Items")</a>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user