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:
parent
82de63a0ba
commit
e8ccc67bb1
13 changed files with 170 additions and 99 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue