+ @if (ACL.GetUserGroup(User.Identity.GetUserId()) == Model.Id)
+ {
+ @Html.ActionLink("Leave", "LeaveGroup", "Groups", null, new { @class = "btn btn-default" })
+ }
+ else
+ {
+ @if (Model.Publicity == 0 || Model.Publicity == 2)
+ {
+ @Html.ActionLink("Join", "JoinGroup", "Groups", new { id = Model.Id }, new { @class = "btn btn-default" })
+ }
+ }
+
+ @if(Model.Publicity > 1)
+ {
+
This group is private.
+
+
Please respect that. Do not share this group link with anyone not authorized by the group administrators.
+ }
+