Login registration

This commit is contained in:
Paul Schneider 2024-11-23 14:23:47 +00:00
commit 277dff7d61
22 changed files with 171 additions and 176 deletions

View file

@ -1,12 +1,14 @@
@model ApplicationUser
@{
var avuri = "/Avatars/"+Model.UserName+".s.png";
var userPosted = Model.Posts!=null && Model.Posts.Count()>1;
}
<div class="userinfo">
<h3>
<img src="@avuri" asp-append-version="true" class="smalltofhol" />
</h3>
@if (Model.Posts!=null && Model.Posts.Count()>1) { <a asp-controller="Blogspot" asp-action="UserPosts"
asp-route-id="@Model.UserName" class="btn btn-primary">index de ses articles</a>
@if (userPosted) { <a asp-controller="Blogspot" asp-action="UserPosts"
asp-route-id="@Model.UserName" class="btn btn-primary">
<img src="@avuri" asp-append-version="true" class="smalltofhol" alt="" title="@Model.UserName"/>
</a>
}else {
Html.LabelFor(m=>m.UserName);
}
</div>