mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 03:11:48 -05:00
edit and delete buttons
This commit is contained in:
parent
7e80b8ce18
commit
4866bac3d9
1 changed files with 11 additions and 0 deletions
|
@ -92,6 +92,17 @@
|
|||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (Request.IsAuthenticated)
|
||||
{
|
||||
if(User.Identity.IsModerator() || post.AuthorId == User.Identity.GetUserId())
|
||||
{
|
||||
<ul class="nav nav-tabs">
|
||||
<li><a href="@Url.Action("EditPost", "Forum", new { id = post.Id })"><span class="glyphicon glyphicon-pencil"></span> Edit</a></li>
|
||||
<li><a href="@Url.Action("DeletePost", "Forum", new { id = post.Id })"><span class="glyphicon glyphicon-trash"></span> Delete</a></li>
|
||||
</ul>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue