mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00

(via Orchard.Mvc.ViewUserControl and Orchard.Mvc.ViewPage) - Pulled conditional template part inclusion from Page, Blog and BlogPost drivers in favor of doing UI trimming on the front - Wrapped the respective manage template markup with the appropriate permission checks --HG-- branch : dev
9 lines
457 B
Plaintext
9 lines
457 B
Plaintext
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.Pages.Models.Page>" %>
|
|
<%@ Import Namespace="Orchard.Pages"%>
|
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
|
<%@ Import Namespace="Orchard.Mvc.Html" %><%
|
|
if (AuthorizedFor(Permissions.EditOthersPages)) { %>
|
|
<div class="manage">
|
|
<a href="<%=Url.Action("Edit", "Admin", new {id = Model.Id, area = "Orchard.Pages"}) %>" class="edit"><%=_Encoded("Edit")%></a>
|
|
</div><%
|
|
} %> |