1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
@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>
<ul class="nav nav-pills">
<li><a href="@Url.Action("CreateGroup")"><span class="glyphicon glyphicon-plus"></span> Create new group</a></li>
</ul>
<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> • @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>
|