mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
liking and disliking of topics
This commit is contained in:
parent
86e05cdf68
commit
db85baaf3c
1 changed files with 14 additions and 0 deletions
|
@ -30,6 +30,20 @@
|
||||||
<li><a href="#"><span class="glyphicon glyphicon-lock"></span> Locked.</a></li>
|
<li><a href="#"><span class="glyphicon glyphicon-lock"></span> Locked.</a></li>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (Request.IsAuthenticated)
|
||||||
|
{
|
||||||
|
if(User.Identity.GetUserId() != Model.AuthorId)
|
||||||
|
{
|
||||||
|
<li><a href="@Url.Action("Like", "Forum", new { id = Model.Discriminator })"><span class="glyphicon glyphicon-thumbs-up"></span> @Model.Likes.Length</a></li>
|
||||||
|
<li><a href="@Url.Action("Dislike", "Forum", new { id = Model.Discriminator })"><span class="glyphicon glyphicon-thumbs-down"></span> @Model.Dislikes.Length</a></li>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<li><span class="glyphicon glyphicon-thumbs-up"></span> @Model.Likes.Length</li>
|
||||||
|
<li><span class="glyphicon glyphicon-thumbs-down"></span> @Model.Dislikes.Length</li>
|
||||||
|
|
||||||
|
}
|
||||||
if (User.Identity.IsModerator())
|
if (User.Identity.IsModerator())
|
||||||
{
|
{
|
||||||
<li class="dropdown"><a data-toggle="dropdown" href="#" class="dropdown-toggle">Quick mod <span class="caret"></span></a>
|
<li class="dropdown"><a data-toggle="dropdown" href="#" class="dropdown-toggle">Quick mod <span class="caret"></span></a>
|
||||||
|
|
Loading…
Reference in a new issue