1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/5e211b535425/ changeset: 5e211b535425 user: greg date: 2011-12-08 17:49:52 summary: Do not allow public user names to be changed within the tool shed if the user has created a tool shed repository. affected #: 2 files
diff -r 862d562e31670dd22a6bd575b2fa79328acabb4d -r 5e211b535425ba3ea80723153043be21446230d7 templates/user/info.mako --- a/templates/user/info.mako +++ b/templates/user/info.mako @@ -21,12 +21,28 @@ </div><div class="form-row"><label>Public name:</label> - <input type="text" name="username" size="40" value="${username}"/> - <div class="toolParamHelp" style="clear: both;"> - Your public name is an optional identifier that will be used to generate addresses for information - you share publicly. Public names must be at least four characters in length and contain only lower-case - letters, numbers, and the '-' character. - </div> + %if webapp == 'community': + ${username} + %if user.active_repositories: + <div class="toolParamHelp" style="clear: both;"> + You cannot change your public name after you have created a repository in this tool shed. + </div> + %else: + <div class="toolParamHelp" style="clear: both;"> + Your public name provides a means of identifying you publicly within this tool shed. Public + names must be at least four characters in length and contain only lower-case letters, numbers, + and the '-' character. You cannot change your public name after you have created a repository + in this tool shed. + </div> + %endif + %else: + <input type="text" name="username" size="40" value="${username}"/> + <div class="toolParamHelp" style="clear: both;"> + Your public name is an optional identifier that will be used to generate addresses for information + you share publicly. Public names must be at least four characters in length and contain only lower-case + letters, numbers, and the '-' character. + </div> + %endif </div><div class="form-row"><input type="submit" name="login_info_button" value="Save"/>
diff -r 862d562e31670dd22a6bd575b2fa79328acabb4d -r 5e211b535425ba3ea80723153043be21446230d7 templates/user/register.mako --- a/templates/user/register.mako +++ b/templates/user/register.mako @@ -50,11 +50,20 @@ <div class="form-row"><label>Public name:</label><input type="text" name="username" size="40" value="${username}"/> - <div class="toolParamHelp" style="clear: both;"> - Your public name is an identifier that will be used to generate addresses for information - you share publicly. Public names must be at least four characters in length and contain only lower-case - letters, numbers, and the '-' character. - </div> + %if webapp == 'galaxy': + <div class="toolParamHelp" style="clear: both;"> + Your public name is an identifier that will be used to generate addresses for information + you share publicly. Public names must be at least four characters in length and contain only lower-case + letters, numbers, and the '-' character. + </div> + %else: + <div class="toolParamHelp" style="clear: both;"> + Your public name provides a means of identifying you publicly within this tool shed. Public + names must be at least four characters in length and contain only lower-case letters, numbers, + and the '-' character. You cannot change your public name after you have created a repository + in this tool shed. + </div> + %endif </div> %if trans.app.config.smtp_server: <div class="form-row">
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
galaxy-commits@lists.galaxyproject.org