Revert "display news list and individual"

This reverts commit 2002c9fe09.
This commit is contained in:
2024-08-01 15:05:21 +03:30
parent 2002c9fe09
commit c31a2eab12
5 changed files with 23 additions and 67 deletions

View File

@ -1,9 +1,7 @@
@using WebApplication1.Models
@model news
@model WebApplication1.Models.news
@{
ViewBag.Title = "Details";
var _user = ViewBag.user as user;
}
<h2>Details</h2>
@ -25,8 +23,8 @@
</dt>
<dd>
<img src="@Url.Content(Model.image)" height="250" width="200" />
<img src="@Model.image" />
@Html.DisplayFor(model => model.image)
</dd>
<dt>
@ -70,11 +68,11 @@
</dd>
<dt>
original poster
@Html.DisplayNameFor(model => model.userID)
</dt>
<dd>
@_user.displayname
@Html.DisplayFor(model => model.userID)
</dd>
<dt>