Changeset 118e414 for PostgreSqlDotnetCore/Views/Blog
- Timestamp:
- 08/23/24 15:40:14 (3 months ago)
- Branches:
- main
- Children:
- e9bb9d1
- Parents:
- 72b1da2
- Location:
- PostgreSqlDotnetCore/Views/Blog
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Views/Blog/Details.cshtml
r72b1da2 r118e414 80 80 @Html.ActionLink("Details", "Details", "BlogPostAnswers", new { id = item.id }) | 81 81 @Html.ActionLink("Delete", "Delete", "BlogPostAnswers", new { id = item.id }) 82 83 @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = item.BlogPostConsultationid, parentId = item.id }) 82 84 </td> 83 85 </tr> … … 87 89 </div> 88 90 <p> 91 @Html.ActionLink("Create an Answer", "Create", "BlogPostAnswers", new { id = Model.id, parentId = Model.id }) 89 92 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) | 90 93 @Html.ActionLink("Back to List", "Index") -
PostgreSqlDotnetCore/Views/Blog/Index.cshtml
r72b1da2 r118e414 29 29 </tr> 30 30 31 @foreach (var item in Model) { 32 <tr> 33 <td> 34 @Html.DisplayFor(modelItem => item.date_askes) 35 </td> 36 <td> 37 @Html.DisplayFor(modelItem => item.title) 38 </td> 31 @foreach (var item in Model) 32 { 33 <tr> 34 <td> 35 @Html.DisplayFor(modelItem => item.date_askes) 36 </td> 37 <td> 38 @Html.DisplayFor(modelItem => item.title) 39 </td> 39 40 40 <td>41 @Html.DisplayFor(modelItem => item.description)42 </td>43 <th>44 @Html.DisplayFor(model => item.users_id)45 </th>41 <td> 42 @Html.DisplayFor(modelItem => item.description) 43 </td> 44 <th> 45 @Html.DisplayFor(model => item.users_id) 46 </th> 46 47 47 @*<td>48 49 50 48 @*<td> 49 @Html.ActionLink("Edit", "Edit", new { id = item.id }) | 50 @Html.ActionLink("Answers", "Details", new { id = item.id }) | 51 @Html.ActionLink("Delete", "Delete", new { id = item.id }) 51 52 </td> 52 53 *@ 53 54 54 55 55 56 56 57 @if (item.users_id == ViewBag.CurrentUserId) 58 { 59 <td> 60 @Html.ActionLink("Edit", "Edit", new { id = item.id }) 61 @Html.ActionLink("Delete", "Delete", new { id = item.id }) 62 63 </td> 57 58 @if (item.users_id == ViewBag.CurrentUserId) 59 { 60 <td> 61 @Html.ActionLink("Edit", "Edit", new { id = item.id }) 62 @Html.ActionLink("Delete", "Delete", new { id = item.id }) 63 64 </td> 64 65 } 65 66 66 67 67 68 68 @if (item.users_id == ViewBag.CurrentUserId || item.users_id != ViewBag.CurrentUserId) 69 69 { 70 70 <td> 71 72 @Html.ActionLink("Answers", "Details", new { id = item.id }) 73 71 72 @Html.ActionLink("Answers", "Details", new { id = item.id }) 73 74 74 75 75 </td> 76 76 } 77 78 77 79 78 80 81 82 83 </tr> 84 } 79 80 81 82 83 </tr> 84 } 85 85 86 86 </table>
Note:
See TracChangeset
for help on using the changeset viewer.