displaying blog comments
This commit is contained in:
parent
289bd09470
commit
6dcbfbe63e
9 changed files with 53 additions and 10 deletions
|
|
@ -1,2 +1,5 @@
|
|||
@model string
|
||||
<img src="@Model" alt="" />
|
||||
@model ShortUserInfo
|
||||
<div style="display: inline-block;">
|
||||
<img src="@Model.Avatar" alt="@Model.UserName" class="smalltofhol" />
|
||||
<div >@Model.UserName</div>
|
||||
</div>
|
||||
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
@if (Model!=null) {
|
||||
<div class="userinfo">
|
||||
<h3>@Component.Invoke("Avatar", Model.Id, ".s")
|
||||
@Model.UserName </h3>
|
||||
<h3>@Component.Invoke("Avatar", Model.Id, ".s")</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>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
@model ApplicationUser
|
||||
|
||||
@if (Model!=null) {
|
||||
@Component.Invoke("Avatar", Model.Id, ".xs")
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
<li>
|
||||
<a asp-controller="Manage" class="navbar-link" asp-action="Index" title="Manage">
|
||||
@Component.Invoke("Avatar", User.GetUserId(), ".xs")
|
||||
@SR["Hello"] @User.GetUserName()!</a>
|
||||
</a>
|
||||
</li>
|
||||
@if (User.IsInRole(Constants.AdminGroupName)) {
|
||||
<li class="dropdown">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue