bug fixes
* Makefile: my deploy config * NpgsqlMembershipProvider.cs: Fixes a Bug introduced by Npgsql driver upgrade * ResultPages.cs: . * style.css: other colors * BlogsController.cs: code cleaning * GoogleController.cs: refactoring * ErrorHtmlFormatter.cs: MarkdownDeep calls now come from yavscModel * YavscHelpers.cs: xmldoc * Index.aspx: code formatting * UserPosts.aspx: nothing to note * Web.csproj: MarkdownHelper has gone to the yavscModel project * MarkdownHelper.cs: * BlogEntryCollection.cs: refactoring + extract an intro from Markdown for PostInfo* * YavscModel.csproj: MarkdownHelper integration
This commit is contained in:
parent
bdae927f67
commit
ce1689df7b
19 changed files with 193 additions and 129 deletions
|
|
@ -82,11 +82,10 @@ namespace Yavsc.Controllers
|
|||
/// <param name="pageSize">Page size.</param>
|
||||
public ActionResult BlogList (int pageIndex = 0, int pageSize = 10)
|
||||
{
|
||||
ViewData ["SiteName"] = sitename;
|
||||
int totalRecords;
|
||||
var bs = BlogManager.LastPosts (pageIndex, pageSize, out totalRecords);
|
||||
ViewData ["RecordCount"] = totalRecords;
|
||||
ViewData ["pageSize"] = pageSize;
|
||||
ViewData ["ResultCount"] = totalRecords;
|
||||
ViewData ["PageSize"] = pageSize;
|
||||
ViewData ["PageIndex"] = pageIndex;
|
||||
return View ("Index", new BlogEntryCollection(bs) );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ namespace Yavsc.Controllers
|
|||
HttpContext.Profile.SetPropertyValue ("Name", me.displayName);
|
||||
// TODO use image
|
||||
if (me.image != null) {
|
||||
HttpContext.Profile.SetPropertyValue ("avatar", me.image.url);
|
||||
HttpContext.Profile.SetPropertyValue ("Avatar", me.image.url);
|
||||
}
|
||||
if (me.placesLived != null) {
|
||||
People.Place pplace = me.placesLived.Where (x => x.primary).First ();
|
||||
|
|
@ -341,4 +341,4 @@ namespace Yavsc.Controllers
|
|||
return View (model);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue