* BlogsController.cs: sets ViewData["Avatar"]

* UserPost.aspx: magnify the header

* UserPosts.aspx: beautyfull header

* Profile.cs: A default Blog title to "<Username>'s blog"
This commit is contained in:
Paul Schneider 2015-01-27 12:14:36 +01:00
commit 495f859243
4 changed files with 27 additions and 13 deletions

View file

@ -95,6 +95,9 @@ namespace Yavsc.Controllers
ViewData ["PageIndex"] = pageIndex;
return View ("Index", bs);
}
/// <summary>
/// Users the posts.
/// </summary>
@ -117,6 +120,7 @@ namespace Yavsc.Controllers
Profile bupr = AccountController.GetProfile (user);
ViewData ["BlogUserProfile"] = bupr;
ViewData ["BlogTitle"] = bupr.BlogTitle;
ViewData ["Avatar"] = bupr.avatar;
ViewData ["PageIndex"] = pageIndex;
ViewData ["PageSize"] = pageSize;
ViewData ["RecordCount"] = tr;
@ -138,7 +142,6 @@ namespace Yavsc.Controllers
private ActionResult UserPost (long id)
{
ViewData ["PostId"] = id;
BlogEntry e = BlogManager.GetPost (id);
return UserPost (e);
}