bed3736c9469a1572f0f8c25a78dbdc7e04b6cbd
[wsti_pai.git] / Projects / Views / Projects / Index.cshtml
1 @model IEnumerable<Projects.Models.Project>
2
3 @{
4     ViewBag.Title = "Index";
5 }
6
7 <h2>Index</h2>
8
9 <p>
10     @Html.ActionLink("Create New", "Create")
11 </p>
12 <table class="table">
13     <tr>
14         <th>
15             @Html.DisplayNameFor(model => model.name)
16         </th>
17         <th>
18             @Html.DisplayNameFor(model => model.description)
19         </th>
20         <th>
21             @Html.DisplayNameFor(model => model.created_at)
22         </th>
23         <th>
24             @Html.DisplayNameFor(model => model.updated_at)
25         </th>
26         <th>
27             @Html.DisplayNameFor(model => model.ProjectUser.login)
28         </th>
29         <th></th>
30     </tr>
31
32 @foreach (var item in Model) {
33     <tr>
34         <td>
35             @Html.DisplayFor(modelItem => item.name)
36         </td>
37         <td>
38             @Html.DisplayFor(modelItem => item.description)
39         </td>
40         <td>
41             @Html.DisplayFor(modelItem => item.created_at)
42         </td>
43         <td>
44             @Html.DisplayFor(modelItem => item.updated_at)
45         </td>
46         <td>
47             @Html.DisplayFor(modelItem => item.ProjectUser.login)
48         </td>
49         <td>
50             @Html.ActionLink("Edit", "Edit", new { id=item.id }) |
51             @Html.ActionLink("Details", "Details", new { id=item.id }) |
52             @Html.ActionLink("Delete", "Delete", new { id=item.id })
53         </td>
54     </tr>
55 }
56
57 </table>