summaryrefslogtreecommitdiff
path: root/Project-Unite/Views
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-07 09:19:55 -0400
committerMichael <[email protected]>2017-05-07 09:19:55 -0400
commit0ae47a126b1fb37ecbc80ecddd34a892fb6fd3b2 (patch)
tree1daa7ef50bdc8fd340566b8731eb5d9805cc2fa4 /Project-Unite/Views
parent0cdba811a67c0fa8f9a68c8efa9280ea0cf22801 (diff)
downloadproject-unite-0ae47a126b1fb37ecbc80ecddd34a892fb6fd3b2.tar.gz
project-unite-0ae47a126b1fb37ecbc80ecddd34a892fb6fd3b2.tar.bz2
project-unite-0ae47a126b1fb37ecbc80ecddd34a892fb6fd3b2.zip
groups (formerly legions) index
Diffstat (limited to 'Project-Unite/Views')
-rw-r--r--Project-Unite/Views/Groups/Index.cshtml50
1 files changed, 50 insertions, 0 deletions
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<Project_Unite.Models.Group>
+
+@{
+ ViewBag.Title = "Groups";
+}
+
+<h2>Groups</h2>
+
+<p>Groups, formerly called <strong>Legions</strong>, are a way of grouping the community into different, well, groups, with their own tasks and goals.</p>
+
+<p>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.</p>
+
+
+
+<table class="table">
+ <tr>
+ <th style="width:65%">Group</th>
+ <th>Users</th>
+ <th>Actions</th>
+ </tr>
+ @if(Model.Count() > 0)
+ {
+ foreach(var group in Model)
+ {
+ if (group.Publicity < 2)
+ {
+ <tr>
+ <td>
+ @Html.ActionLink(group.Name, "ViewGroup", "Groups", new { id = group.Id }, null) <br/>
+ <p><strong>[@group.ShortName]</strong> &bull; @group.Publicity.ToString()</p>
+ </td>
+ <td>
+ @group.Users.Count()
+ </td>
+ <td>
+ @Html.ActionLink("Join", "JoinGroup", "Groups", new { [email protected]}, new { @class="btn btn-default"})
+ </td>
+ </tr>
+ }
+ }
+ }
+ else
+ {
+ <tr>
+ <td>No groups found! Be the first to create one!</td>
+ <td></td>
+ <td></td>
+ </tr>
+ }
+</table> \ No newline at end of file