mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing duplicate overload
This commit is contained in:
@@ -114,18 +114,6 @@ namespace Orchard.Mvc.Html {
|
|||||||
new RouteValueDictionary(htmlAttributes));
|
new RouteValueDictionary(htmlAttributes));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MvcHtmlString ItemEditLink(this HtmlHelper html, string linkText, IContent content, object additionalRouteValues, object htmlAttributes) {
|
|
||||||
var metadata = content.ContentItem.ContentManager.GetItemMetadata(content);
|
|
||||||
if (metadata.EditorRouteValues == null)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
return html.ActionLink(
|
|
||||||
NonNullOrEmpty(linkText, metadata.DisplayText, content.ContentItem.TypeDefinition.DisplayName),
|
|
||||||
Convert.ToString(metadata.EditorRouteValues["action"]),
|
|
||||||
metadata.EditorRouteValues.Merge(additionalRouteValues),
|
|
||||||
htmlAttributes);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static MvcHtmlString ItemAdminLink(this HtmlHelper html, IContent content) {
|
public static MvcHtmlString ItemAdminLink(this HtmlHelper html, IContent content) {
|
||||||
return ItemAdminLink(html, null, content);
|
return ItemAdminLink(html, null, content);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user