Changeset e90ba32 for PostgreSqlDotnetCore/Views/Blog
- Timestamp:
- 08/29/24 20:27:21 (3 months ago)
- Branches:
- main
- Children:
- 99d0ecc
- Parents:
- a850333
- Location:
- PostgreSqlDotnetCore/Views/Blog
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Views/Blog/Details.cshtml
ra850333 re90ba32 77 77 78 78 <td> 79 @Html.ActionLink("Edit", "Edit", "BlogPostAnswers", new { id = item.id }) | 80 @Html.ActionLink("Details", "Details", "BlogPostAnswers", new { id = item.id }) | 81 @Html.ActionLink("Delete", "Delete", "BlogPostAnswers", new { id = item.id }) 82 79 80 @Html.ActionLink("Details", "Details", "BlogPostAnswers", new { id = item.id }) 83 81 @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = item.BlogPostConsultationid, parentId = item.id }) 84 82 </td> 83 84 @if (item.usersid == ViewBag.CurrentUserId) 85 86 { 87 <td> 88 89 @Html.ActionLink("Edit", "Edit", "BlogPostAnswers", new { id = item.id }) 90 @Html.ActionLink("Delete", "Delete", "BlogPostAnswers", new { id = item.id }) 91 92 93 </td> 94 } 95 96 85 97 </tr> 86 98 } … … 90 102 <p> 91 103 @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = Model.id, parentId = Model.id }) 92 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |93 104 @Html.ActionLink("Back to List", "Index") 94 105 </p> 106 107 108 @if (Model.users_id == ViewBag.CurrentUserId) 109 110 { 111 <p> 112 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) 113 114 115 </p> 116 } -
PostgreSqlDotnetCore/Views/Blog/Index.cshtml
ra850333 re90ba32 1 @model IEnumerable<PostgreSqlDotnetCore.Models.Blog PostConsultation>1 @model IEnumerable<PostgreSqlDotnetCore.Models.BlogUsers> 2 2 3 3 @{ … … 14 14 15 15 <th> 16 @Html.DisplayNameFor(model => model. date_askes)16 @Html.DisplayNameFor(model => model.id) 17 17 </th> 18 18 <th> 19 @Html.DisplayNameFor(model => model. title)19 @Html.DisplayNameFor(model => model.user_name) 20 20 </th> 21 21 <th> 22 @Html.DisplayNameFor(model => model. description)22 @Html.DisplayNameFor(model => model.user_email) 23 23 </th> 24 24 <th> 25 @Html.DisplayNameFor(model => model.users_id) 25 @Html.DisplayNameFor(model => model.consultation_title) 26 </th> 27 <th> 28 @Html.DisplayNameFor(model => model.consultation_description) 29 </th> 30 <th> 31 @Html.DisplayNameFor(model => model.consultation_date) 26 32 </th> 27 33 <th></th> … … 33 39 <tr> 34 40 <td> 35 @Html.DisplayFor(modelItem => item. date_askes)41 @Html.DisplayFor(modelItem => item.id) 36 42 </td> 37 43 <td> 38 @Html.DisplayFor(modelItem => item. title)44 @Html.DisplayFor(modelItem => item.user_name) 39 45 </td> 40 41 46 <td> 42 @Html.DisplayFor(model Item => item.description)47 @Html.DisplayFor(model => item.user_email) 43 48 </td> 44 <th> 45 @Html.DisplayFor(model => item.users_id) 46 </th> 49 <td> 50 @Html.DisplayFor(modelItem => item.consultation_title) 51 </td> 52 <td> 53 @Html.DisplayFor(modelItem => item.consultation_description) 54 </td> 55 <td> 56 @Html.DisplayFor(modelItem => item.consultation_date) 57 </td> 47 58 48 59 @*<td>
Note:
See TracChangeset
for help on using the changeset viewer.