summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Wiki/Index.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-07 09:57:24 -0400
committerMichael <[email protected]>2017-04-07 09:57:24 -0400
commit5860170c1fed2342232d7e35015b669e8b8ec471 (patch)
treebfd2113a5b98421c94344d313cf35c2d1e2d171c /Project-Unite/Views/Wiki/Index.cshtml
parent6989516207321b6d99c6b04879b5a9a438527107 (diff)
downloadproject-unite-5860170c1fed2342232d7e35015b669e8b8ec471.tar.gz
project-unite-5860170c1fed2342232d7e35015b669e8b8ec471.tar.bz2
project-unite-5860170c1fed2342232d7e35015b669e8b8ec471.zip
Add "edit page" button to wiki
Diffstat (limited to 'Project-Unite/Views/Wiki/Index.cshtml')
-rw-r--r--Project-Unite/Views/Wiki/Index.cshtml7
1 files changed, 7 insertions, 0 deletions
diff --git a/Project-Unite/Views/Wiki/Index.cshtml b/Project-Unite/Views/Wiki/Index.cshtml
index d3772a2..02c2845 100644
--- a/Project-Unite/Views/Wiki/Index.cshtml
+++ b/Project-Unite/Views/Wiki/Index.cshtml
@@ -81,6 +81,13 @@
<p><strong>Last edited by @Html.UserLink(edit.UserId) on @edit.EditedAt</strong></p>
+ if (Request.IsAuthenticated)
+ {
+ <ul>
+ <li><a href="@Url.Action("EditPage", new { id = Model.Page.Id })"><span class="glyphicon glyphicon-pencil"></span> Edit this page</a></li>
+ </ul>
+ }
+
<p>@Html.Markdown(Model.Page.Contents)</p>
if (Request.IsAuthenticated)