summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-22 11:57:26 -0400
committerMichael <[email protected]>2017-05-22 11:57:26 -0400
commite5811564800bf0d71f9612b76a76bd96f8532067 (patch)
tree0e0d82a40074cd68f582c2ae238e1f5bf8d30ccc
parent85aba29b5f6914d5825ae8c2d2b29e03fd7f48a4 (diff)
downloadproject-unite-e5811564800bf0d71f9612b76a76bd96f8532067.tar.gz
project-unite-e5811564800bf0d71f9612b76a76bd96f8532067.tar.bz2
project-unite-e5811564800bf0d71f9612b76a76bd96f8532067.zip
wtf
-rw-r--r--Project-Unite/Views/Shared/_LoginPartial.cshtml11
1 files changed, 6 insertions, 5 deletions
diff --git a/Project-Unite/Views/Shared/_LoginPartial.cshtml b/Project-Unite/Views/Shared/_LoginPartial.cshtml
index 88a3a6d..e79351c 100644
--- a/Project-Unite/Views/Shared/_LoginPartial.cshtml
+++ b/Project-Unite/Views/Shared/_LoginPartial.cshtml
@@ -1,14 +1,15 @@
@using Microsoft.AspNet.Identity
+ @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class="hidden" }))
+ {
+ @Html.AntiForgeryToken()
+ }
+
<ul class="nav navbar-nav navbar-right" style="margin-right:15px;">
<li><a href="@Url.Action("SendFeedback", "Home")"><span class="glyphicon glyphicon-star"></span> Send feedback</a></li>
@if (Request.IsAuthenticated)
{
- using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
- {
- @Html.AntiForgeryToken()
-
<li><a href="@Url.Action("ViewUnread", "Forum")"><span class="glyphicon glyphicon-star-empty"></span> @ACL.UnreadPostsCount(User.Identity.Name) unread posts</a></li>
<li id="notification_body" class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle"><span class="glyphicon glyphicon-bullhorn"></span> <strong id="notification_count">@Html.NotificationCount(User.Identity.GetUserId())</strong></a>
@@ -41,7 +42,7 @@
<li><a href="javascript:document.getElementById('logoutForm').submit()"><span class="glyphicon glyphicon-log-out"></span> Log off</a></li>
</ul>
</li>
- }
+
}
else
{