cbde96a6df514fc82abc47b0392bb622c260950d chinhli Fri Jun 1 15:02:34 2012 -0700 Add spce to login links in hgSession. diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c index bb44535..a9164e7 100644 --- src/hg/hgSession/hgSession.c +++ src/hg/hgSession/hgSession.c @@ -46,74 +46,69 @@ cgiDecode(encStr, decStr, len); return decStr; } void welcomeUser(char *wikiUserName) /* Tell the user they are not logged in to the wiki or other login * system and tell them how to do so. */ { char *wikiHost = wikiLinkHost(); cartWebStart(cart, NULL, "Welcome %s", wikiUserName); jsInit(); if (loginSystemEnabled()) /* Using the new hgLogin CGI for login? */ { - printf("<B>Your account</B><BR>" - "<B>Name</B>: %s<BR>",wikiUserName); - printf("<A HREF=\"%s\"><B>Change password</B></A><BR>", + printf("<h4 style=\"margin: 0pt 0pt 7px;\">Your Account Information</h4>" + "<ul style=\"list-style: none outside none; margin: 0pt; padding: 0pt;\">" + "<li>Username: %s</li>",wikiUserName); + printf("<li><A HREF=\"%s\">Change password</A><\li></ul>", wikiLinkChangePasswordUrl(cartSessionId(cart))); - printf("<A HREF=\"%s\"><B>Sign out</B></A>\n", + printf("<p><A HREF=\"%s\">Sign out</A></p>", wikiLinkUserLogoutUrl(cartSessionId(cart))); -/**** to be removed - printf("If you are not %s (on the %s at " - "<A HREF=\"http://%s/\" TARGET=_BLANK>%s</A>) " - "and would like to sign out or change identity, \n", - wikiUserName, loginSystemName(), wikiHost, wikiHost); - printf("<A HREF=\"%s\"><B>click here to sign out.</B></A>\n", - wikiLinkUserLogoutUrl(cartSessionId(cart))); -*************************/ } else { printf("If you are not %s (on the wiki at " "<A HREF=\"http://%s/\" TARGET=_BLANK>%s</A>) " "and would like to sign out or change identity, \n", wikiUserName, wikiHost, wikiHost); printf("<A HREF=\"%s\"><B>click here to sign out.</B></A>\n", wikiLinkUserLogoutUrl(cartSessionId(cart))); } } void offerLogin() /* Tell the user they are not logged in to the system and tell them how to * do so. */ { char *wikiHost = wikiLinkHost(); cartWebStart(cart, NULL, "Sign in to UCSC Genome Bioinformatics"); jsInit(); if (loginSystemEnabled()) { - printf("<A HREF=\"%s\"><B>Login</B></A><BR>", + printf("<h4 style=\"margin: 0pt 0pt 7px;\">Your Account Information</h4>" + "<ul style=\"list-style: none outside none; margin: 0pt; padding: 0pt;\"" +"<li><A HREF=\"%s\">Login</A></li>", wikiLinkUserLoginUrl(cartSessionId(cart))); - printf("<A HREF=\"%s\">" - "<B>Create an account</B></A><BR><BR>", + printf("<li><A HREF=\"%s\">" + "Create an account</A></li></ul>", wikiLinkUserSignupUrl(cartSessionId(cart))); - printf("Signing in enables you to save current settings into a " - "named session, and then restore settings from the session later.\n" - "If you wish, you can share named sessions with other users.\n"); + printf("<P>Signing in enables you to save current settings into a " + "named session, and then restore settings from the session later. <BR>" + "If you wish, you can share named sessions with other users.</P>"); } else { printf("Signing in enables you to save current settings into a " "named session, and then restore settings from the session later.\n" "If you wish, you can share named sessions with other users.\n"); printf("<P>The sign-in page is handled by our " "<A HREF=\"http://%s/\" TARGET=_BLANK>wiki system</A>:\n", wikiHost); printf("<A HREF=\"%s\"><B>click here to sign in.</B></A>\n", wikiLinkUserLoginUrl(cartSessionId(cart))); printf("The wiki also serves as a forum for users " "to share knowledge and ideas.\n"); } }