mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Fixes #5735 : ContentType name encoding in Lists
This commit is contained in:
@@ -5,13 +5,13 @@
|
||||
}
|
||||
<div class="item-properties actions">
|
||||
<p>
|
||||
@Html.ActionLink(T("{0} Properties", (string)Model.ContainerDisplayName).ToString(), "Edit", new { Area = "Contents", Id = (int)Model.ContainerId, ReturnUrl = Html.ViewContext.HttpContext.Request.RawUrl })
|
||||
@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 })
|
||||
</p>
|
||||
</div>
|
||||
<div class="manage">
|
||||
@if (itemContentTypes.Any()) {
|
||||
foreach (var contentType in itemContentTypes) {
|
||||
@Html.ActionLink(T("New {0}", contentType.DisplayName).ToString(), "Create", "Admin", new { area = "Contents", id = contentType.Name, containerId }, new { @class = "button primaryAction create-content" })
|
||||
@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" })
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user