diff options
| author | Michael <[email protected]> | 2017-05-07 09:31:55 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-07 09:31:55 -0400 |
| commit | 47a8fdc9c725bfa468e77366e6d136400ef5e947 (patch) | |
| tree | 7f35dbefcb3b9f305d6b02950301f412f178e14d /Project-Unite/Views | |
| parent | 0ae47a126b1fb37ecbc80ecddd34a892fb6fd3b2 (diff) | |
| download | project-unite-47a8fdc9c725bfa468e77366e6d136400ef5e947.tar.gz project-unite-47a8fdc9c725bfa468e77366e6d136400ef5e947.tar.bz2 project-unite-47a8fdc9c725bfa468e77366e6d136400ef5e947.zip | |
View Group page
Diffstat (limited to 'Project-Unite/Views')
| -rw-r--r-- | Project-Unite/Views/Groups/ViewGroup.cshtml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Project-Unite/Views/Groups/ViewGroup.cshtml b/Project-Unite/Views/Groups/ViewGroup.cshtml new file mode 100644 index 0000000..8409e0a --- /dev/null +++ b/Project-Unite/Views/Groups/ViewGroup.cshtml @@ -0,0 +1,37 @@ +@model Project_Unite.Models.Group +@{ + ViewBag.Title = Model.Name + " - Groups "; +} +@using Microsoft.AspNet.Identity; + +<div class="row group_banner" style="background-color: #@Model.BannerColorHex;"> + <h2><strong>[@Model.ShortName] @Model.Name</strong></h2> +</div> + + +<div class="row"> + <div class="panel col-xs-8"> + @Html.Markdown(Model.Description) + </div> + <div class="col-xs-4"> + @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" }) + } + } + <hr/> + @if(Model.Publicity > 1) + { + <h4>This group is private.</h4> + + <p>Please respect that. Do not share this group link with anyone not authorized by the group administrators.</p> + } + </div> +</div> + |
