Mercurial > hg > mercurial
changeset 938:12ea02234103
Show oauth connections
author | Dmitry Neverov <dmitry.neverov@gmail.com> |
---|---|
date | Wed, 09 Dec 2015 13:05:16 +0100 |
parents | 3db6c332fc3b |
children | 7528d38018b1 |
files | mercurial-server/resources/buildServerResources/mercurialSettings.jsp |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-server/resources/buildServerResources/mercurialSettings.jsp Tue Nov 10 21:27:07 2015 +0300 +++ b/mercurial-server/resources/buildServerResources/mercurialSettings.jsp Wed Dec 09 13:05:16 2015 +0100 @@ -37,6 +37,7 @@ <tr> <th><label for="repositoryPath">Pull changes from: <l:star/></label></th> <td><props:textProperty name="repositoryPath" className="longField" onchange="updateBranchName(this.value)"/> + <jsp:include page="/admin/repositoryControls.html?projectId=${parentProject.externalId}&vcsType=hg"/> <span class="error" id="error_repositoryPath"></span></td> </tr> <tr> @@ -141,4 +142,18 @@ </td> </tr> </l:settingsGroup> + <script type="text/javascript"> + $j(document).ready(function() { + if (BS.Repositories != null) { + BS.Repositories.installControls($('repositoryPath'), function (repoInfo, cre) { + $('repositoryPath').value = repoInfo.repositoryUrl; + if (cre != null) { + $('username').value = cre.oauthLogin; + } + }); + } else { + $j('.listRepositoriesControls').hide(); + } + }); + </script> </table>