1 @model IEnumerable<Projects.Models.Project>
4 ViewBag.Title = "Index";
7 <h2>@ViewBag.Title</h2>
10 @Html.ActionLink("Create New", "Create")
15 @Html.DisplayNameFor(model => model.name)
18 @Html.DisplayNameFor(model => model.description)
21 @Html.DisplayNameFor(model => model.created_at)
24 @Html.DisplayNameFor(model => model.updated_at)
27 @Html.DisplayNameFor(model => model.User.login)
32 @foreach (var item in Model) {
35 @Html.DisplayFor(modelItem => item.name)
38 @Html.DisplayFor(modelItem => item.description)
41 @Html.DisplayFor(modelItem => item.created_at)
44 @Html.DisplayFor(modelItem => item.updated_at)
47 @Html.DisplayFor(modelItem => item.User.login)
50 @Html.ActionLink("Edycja", "Edit", new { id=item.id }) |
51 @Html.ActionLink("Szczegóły", "Details", new { id=item.id }) |
52 @Html.ActionLink("Usuń", "Delete", new { id=item.id })