diff --git a/Yavsc/ViewComponents/AvatarViewComponent.cs b/Yavsc/ViewComponents/AvatarViewComponent.cs
index fa90daec..42bd193a 100644
--- a/Yavsc/ViewComponents/AvatarViewComponent.cs
+++ b/Yavsc/ViewComponents/AvatarViewComponent.cs
@@ -1,6 +1,8 @@
+using System.Linq;
using Microsoft.AspNet.Mvc;
using Yavsc.Helpers;
using Yavsc.Models;
+using Yavsc.ViewModels.Account;
namespace Yavsc.ViewComponents
{
@@ -14,7 +16,14 @@ namespace Yavsc.ViewComponents
public IViewComponentResult Invoke ( string userId, string imgFmt )
{
- return View ( "Default", dbContext.AvatarUri(userId, imgFmt));
+ var user = dbContext.Users.Single(u=>u.Id == userId);
+
+ return View ( "Default", new ShortUserInfo
+ {
+ Avatar = dbContext.AvatarUri(userId, imgFmt),
+ UserName = user.UserName,
+ UserId = userId
+ } );
}
}
diff --git a/Yavsc/ViewModels/Account/ShortUserInfo.cs b/Yavsc/ViewModels/Account/ShortUserInfo.cs
new file mode 100644
index 00000000..1bf39cfe
--- /dev/null
+++ b/Yavsc/ViewModels/Account/ShortUserInfo.cs
@@ -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; }
+ }
+}
\ No newline at end of file
diff --git a/Yavsc/Views/Blogspot/Details.cshtml b/Yavsc/Views/Blogspot/Details.cshtml
index 239e3ba4..beda9663 100644
--- a/Yavsc/Views/Blogspot/Details.cshtml
+++ b/Yavsc/Views/Blogspot/Details.cshtml
@@ -71,10 +71,17 @@ $('span.field-validation-valid[data-valmsg-for="Content"]').html(
@Component.Invoke("Tagger",Model)
-
+ @if (Model.Comments.Count>0) {
+ }
@if (await AuthorizationService.AuthorizeAsync(User, Model, new EditRequirement())) {
@SR["Edit"]
diff --git a/Yavsc/Views/Shared/Components/Avatar/Default.cshtml b/Yavsc/Views/Shared/Components/Avatar/Default.cshtml
index 6460a9c0..82a93c74 100644
--- a/Yavsc/Views/Shared/Components/Avatar/Default.cshtml
+++ b/Yavsc/Views/Shared/Components/Avatar/Default.cshtml
@@ -1,2 +1,5 @@
-@model string
-
\ No newline at end of file
+@model ShortUserInfo
+
+

+
@Model.UserName
+
\ No newline at end of file
diff --git a/Yavsc/Views/Shared/DisplayTemplates/ApplicationUser.cshtml b/Yavsc/Views/Shared/DisplayTemplates/ApplicationUser.cshtml
index d9360dc0..c02b0fd3 100644
--- a/Yavsc/Views/Shared/DisplayTemplates/ApplicationUser.cshtml
+++ b/Yavsc/Views/Shared/DisplayTemplates/ApplicationUser.cshtml
@@ -2,8 +2,7 @@
@if (Model!=null) {
-
@Component.Invoke("Avatar", Model.Id, ".s")
-@Model.UserName
+
@Component.Invoke("Avatar", Model.Id, ".s")
@if (Model.Posts!=null && Model.Posts.Count()>1) {
@SR["index de ses articles"]
}
diff --git a/Yavsc/Views/Shared/DisplayTemplates/ApplicationUserLink.cshtml b/Yavsc/Views/Shared/DisplayTemplates/ApplicationUserLink.cshtml
new file mode 100644
index 00000000..5a97a79c
--- /dev/null
+++ b/Yavsc/Views/Shared/DisplayTemplates/ApplicationUserLink.cshtml
@@ -0,0 +1,5 @@
+@model ApplicationUser
+
+@if (Model!=null) {
+@Component.Invoke("Avatar", Model.Id, ".xs")
+}
diff --git a/Yavsc/Views/Shared/_LoginPartial.cshtml b/Yavsc/Views/Shared/_LoginPartial.cshtml
index c73c3840..87eb2d76 100755
--- a/Yavsc/Views/Shared/_LoginPartial.cshtml
+++ b/Yavsc/Views/Shared/_LoginPartial.cshtml
@@ -7,7 +7,7 @@
@Component.Invoke("Avatar", User.GetUserId(), ".xs")
- @SR["Hello"] @User.GetUserName()!
+
@if (User.IsInRole(Constants.AdminGroupName)) {
diff --git a/Yavsc/wwwroot/css/main/site.css b/Yavsc/wwwroot/css/main/site.css
index 3f1aeb58..1d956cfa 100644
--- a/Yavsc/wwwroot/css/main/site.css
+++ b/Yavsc/wwwroot/css/main/site.css
@@ -50,7 +50,15 @@
.smalltofhol {
align-self: left;
- padding: 1em;
+ padding: .5em;
+ border-radius: 32px;
+}
+
+.commentmeta {
+ margin: .5em;
+ padding: .5em;
+ border-right: #444 dashed 1px;
+ border-top: #444 solid 1px;
}
.price {
diff --git a/Yavsc/wwwroot/js/site.min.js b/Yavsc/wwwroot/js/site.min.js
index d5fd5b98..5aa59fac 100755
--- a/Yavsc/wwwroot/js/site.min.js
+++ b/Yavsc/wwwroot/js/site.min.js
@@ -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()};
\ No newline at end of file
+var notifClick=function(i){i>0&&$.get("/api/dimiss/click/"+i)},setUiCult=function(i){document.cookie="ASPNET_CULTURE=c="+i+"|uic="+i,location.reload()};
\ No newline at end of file