Totem Prod customisation

* Web.config:
* YavscHelpers.cs:
* GoogleController.cs:
* Profile.cs: refactoring

* OAuth2.cs: refactoring

* AccountController.cs: * refactoring profile properties
* fixes profile edition auth

* instdbws.sql: remove some ownership attribution

* Web.csproj: totem prod custo

* App.master: Totem prod custo
nice and simple parralax effect,
quiet working on my android browser ...

* Profile.aspx: a smaller avatar

* style.css: Totem prod custo
This commit is contained in:
Paul Schneider 2015-10-01 21:44:54 +02:00
commit e8ccc67bb1
13 changed files with 170 additions and 99 deletions

View file

@ -243,7 +243,7 @@ namespace Yavsc.Helpers.Google
}
pr.SetPropertyValue ("gtoken", token);
pr.Save ();
// ASSERT gat.token_type == pr.GetPropertyValue("token_type")
// ASSERT gat.token_type == pr.GetPropertyValue("gtokentype")
}
return token_type + " " + token;
}

View file

@ -163,10 +163,15 @@ namespace Yavsc.Helpers
foreach (MembershipUser u in users)
YavscHelpers.SendActivationMessage (u);
}
/// <summary>
/// Avatars the URL.
/// </summary>
/// <returns>The URL.</returns>
/// <param name="helper">Helper.</param>
/// <param name="username">Username.</param>
public static string AvatarUrl (this HtmlHelper helper, string username) {
ProfileBase pr = ProfileBase.Create (username);
string avpath = (string ) pr.GetPropertyValue("avatar") ;
var avpath = pr.GetPropertyValue("Avatar") ;
if (avpath != null)
return helper.Encode (avpath);
return "/avatars/" + helper.Encode(username)+".png";