From 0ae47a126b1fb37ecbc80ecddd34a892fb6fd3b2 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 7 May 2017 09:19:55 -0400 Subject: groups (formerly legions) index --- Project-Unite/Views/Groups/Index.cshtml | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Project-Unite/Views/Groups/Index.cshtml (limited to 'Project-Unite/Views') diff --git a/Project-Unite/Views/Groups/Index.cshtml b/Project-Unite/Views/Groups/Index.cshtml new file mode 100644 index 0000000..7364df0 --- /dev/null +++ b/Project-Unite/Views/Groups/Index.cshtml @@ -0,0 +1,50 @@ +@model IEnumerable + +@{ + ViewBag.Title = "Groups"; +} + +

Groups

+ +

Groups, formerly called Legions, are a way of grouping the community into different, well, groups, with their own tasks and goals.

+ +

You can join one of the in-game groups from your Digital Society Control Centre, or you can join one of the many user-created groups here.

+ + + + + + + + + + @if(Model.Count() > 0) + { + foreach(var group in Model) + { + if (group.Publicity < 2) + { + + + + + + } + } + } + else + { + + + + + + } +
GroupUsersActions
+ @Html.ActionLink(group.Name, "ViewGroup", "Groups", new { id = group.Id }, null)
+

[@group.ShortName] • @group.Publicity.ToString()

+
+ @group.Users.Count() + + @Html.ActionLink("Join", "JoinGroup", "Groups", new { id=@group.Id}, new { @class="btn btn-default"}) +
No groups found! Be the first to create one!
\ No newline at end of file -- cgit v1.2.3