Changeset 910
- Timestamp:
- 07/28/08 21:52:05 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Vanilla/templates/vanilla+authentication/javascript.mtml
r891 r910 1 1 <$mt:var name="user-auth" value="signin-content"$> 2 <mt:Ignore> 3 Set show_userpic to 1 to enable userpics in the signin line 4 - Requires Community Solution 5 - Note: This will update username to link to Community Solution "edit profile" script. This script assumes that you are using profiles and thus links to "view profile" screen. If the template set is not using profiles then the Community Solution "Profile Edit" Global System Template should be updated. 6 </mt:Ignore> 7 <$mt:var name="show_userpic" value="1"$> 2 8 3 9 /* section *****************************************************************/ … … 65 71 } 66 72 if (u && u.name) { 73 <mt:If name="show_userpic"> 74 if (u.userpic) 75 content += '<img src="' + u.userpic + '" width="50" height="50" />'; 76 </mt:If> 67 77 var url; 68 78 if (u.is_authenticated) { 69 79 if (u.is_author) { 80 <mt:If name="show_userpic"> 81 url = '<$mt:CGIPath$><$mt:CommunityScript$>?__mode=edit&blog_id=<$mt:BlogID$>'; 82 url += '&return_to=' + encodeURIComponent(document.URL); 83 <mt:Else> 70 84 url = '<$mt:CGIPath$><$mt:CommentScript$>?__mode=edit_profile&blog_id=<$mt:BlogID$>'; 71 85 url += '&static=' + encodeURIComponent( location.href ); 86 </mt:If> 72 87 } else { 73 88 url = u.url; … … 78 93 url = null; 79 94 } 80 var content= '<__trans phrase="You are signed in as " escape="js">';95 content += '<__trans phrase="You are signed in as " escape="js">'; 81 96 if (url) 82 97 content += '<a href="' + url + '">' + u.name + '</a>';
