removing avatar component

This commit is contained in:
2019-09-27 03:21:35 +01:00
parent 63ed034d15
commit 766535cde9
4 changed files with 7 additions and 24 deletions

View File

@ -1,5 +0,0 @@
@model ShortUserInfo
<div style="display: inline-block;">
<img src="@Model.Avatar" class="smalltofhol" />
@Model.UserName
</div>

View File

@ -1,7 +1,11 @@
@model ApplicationUser
@{
var avuri = "/Avatars/"+Model.UserName+".s.png";
}
<div class="userinfo">
<h3>@Component.Invoke("Avatar", Model.Id, ".s")</h3>
<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">@SR["index de ses articles"]</a>
}

View File

@ -1,5 +1,5 @@
@model ApplicationUser
@if (Model!=null) {
@Component.Invoke("Avatar", Model.Id, ".xs")
<img src="/Avatars/@(Model.UserName+".xs").png" asp-append-version="true" class="smalltofhol" />
}