* BasketController.cs: adds comments,

and modifies the Create method
  profile

* BlogsController.cs: adds comments

* Global.asax.cs: (Revert to revision
  0ec856db45)

* Web.csproj: reomves the GoogleMapsHelpers library. It targets the
  MVC 4.0.0.0 assembly.
This commit is contained in:
Paul Schneider 2015-02-10 13:27:10 +01:00
commit b00c1a8cd3
4 changed files with 64 additions and 11 deletions

View file

@ -114,12 +114,16 @@ namespace Yavsc.Controllers
FindBlogEntryFlags sf = FindBlogEntryFlags.MatchUserName;
ViewData ["SiteName"] = sitename;
ViewData ["BlogUser"] = user;
// displays invisible items when the logged user is also the author
if (u != null)
if (u.UserName == user)
sf |= FindBlogEntryFlags.MatchInvisible;
// find entries
BlogEntryCollection c = BlogManager.FindPost (user, sf, pageIndex, pageSize, out tr);
// Get author's meta data
Profile bupr = AccountController.GetProfile (user);
ViewData ["BlogUserProfile"] = bupr;
// Inform of listing meta data
ViewData ["BlogTitle"] = bupr.BlogTitle;
ViewData ["Avatar"] = bupr.avatar;
ViewData ["PageIndex"] = pageIndex;