displaying blog comments
parent
bfa0aaa741
commit
3487aa2a96
@ -0,0 +1,11 @@
|
||||
namespace Yavsc.ViewModels.Account
|
||||
{
|
||||
public class ShortUserInfo
|
||||
{
|
||||
public string Avatar { get; set; }
|
||||
|
||||
public string UserName { get; set; }
|
||||
|
||||
public string UserId { get; set; }
|
||||
}
|
||||
}
|
||||
@ -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>
|
||||
@ -0,0 +1,5 @@
|
||||
@model ApplicationUser
|
||||
|
||||
@if (Model!=null) {
|
||||
@Component.Invoke("Avatar", Model.Id, ".xs")
|
||||
}
|
||||
@ -1 +1 @@
|
||||
var notifClick=function(i){i>0&&$.get("/api/dimiss/click/"+i).done(function(){}).fail(function(){}).always(function(){})},setUiCult=function(i){document.cookie="ASPNET_CULTURE=c="+i+"|uic="+i,location.reload()};
|
||||
var notifClick=function(i){i>0&&$.get("/api/dimiss/click/"+i)},setUiCult=function(i){document.cookie="ASPNET_CULTURE=c="+i+"|uic="+i,location.reload()};
|
||||
Loading…
Reference in New Issue