Mercurial > hg > mercurial
comparison mercurial-server/resources/buildServerResources/mercurialSettings.jsp @ 899:e7b716719044
TW-36401 hide 'Clone repository to' option
It is shown if enabled by internal property or when VCS root already has this
option specified.
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Thu, 13 Nov 2014 14:44:52 +0100 |
parents | 638d979c6117 |
children | b83484e825b7 |
comparison
equal
deleted
inserted
replaced
898:638d979c6117 | 899:e7b716719044 |
---|---|
1 <%@ page import="jetbrains.buildServer.serverSide.TeamCityProperties" %> | 1 <%@ page import="jetbrains.buildServer.serverSide.TeamCityProperties" %> |
2 <%@ page import="jetbrains.buildServer.buildTriggers.vcs.mercurial.Constants" %> | 2 <%@ page import="jetbrains.buildServer.buildTriggers.vcs.mercurial.Constants" %> |
3 <%@ page import="jetbrains.buildServer.util.StringUtil" %> | |
3 <%@include file="/include.jsp"%> | 4 <%@include file="/include.jsp"%> |
4 <%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %> | 5 <%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %> |
5 <%-- | 6 <%-- |
6 ~ Copyright 2000-2014 JetBrains s.r.o. | 7 ~ Copyright 2000-2014 JetBrains s.r.o. |
7 ~ | 8 ~ |
25 $('branchName').value = repoPath.substring(repoPath.indexOf('#')+1); | 26 $('branchName').value = repoPath.substring(repoPath.indexOf('#')+1); |
26 } | 27 } |
27 } | 28 } |
28 </script> | 29 </script> |
29 <c:set var="subreposGloballyDisabled" value="<%= !TeamCityProperties.getBooleanOrTrue(Constants.GLOBAL_DETECT_SUBREPO_CHANGES) %>"/> | 30 <c:set var="subreposGloballyDisabled" value="<%= !TeamCityProperties.getBooleanOrTrue(Constants.GLOBAL_DETECT_SUBREPO_CHANGES) %>"/> |
31 <c:set var="showCustomClonePath" value="<%= TeamCityProperties.getBoolean(Constants.SHOW_CUSTOM_CLONE_PATH) || !StringUtil.isEmpty(propertiesBean.getProperties().get(Constants.SERVER_CLONE_PATH_PROP))%>"/> | |
30 <table class="runnerFormTable"> | 32 <table class="runnerFormTable"> |
31 | 33 |
32 <l:settingsGroup title="General Settings"> | 34 <l:settingsGroup title="General Settings"> |
33 <tr> | 35 <tr> |
34 <th><label for="repositoryPath">Pull changes from: <l:star/></label></th> | 36 <th><label for="repositoryPath">Pull changes from: <l:star/></label></th> |
48 <td> | 50 <td> |
49 <props:checkboxProperty name="useTagsAsBranches"/> | 51 <props:checkboxProperty name="useTagsAsBranches"/> |
50 <label for="reportTagRevisions">If enabled tags can be used in branch specification</label> | 52 <label for="reportTagRevisions">If enabled tags can be used in branch specification</label> |
51 </td> | 53 </td> |
52 </tr> | 54 </tr> |
53 <tr class="advancedSetting"> | 55 <c:if test="${showCustomClonePath}"> |
54 <th><label for="serverClonePath">Clone repository to: </label></th> | 56 <tr class="advancedSetting"> |
55 <td><props:textProperty name="serverClonePath" className="longField"/> | 57 <th><label for="serverClonePath">Clone repository to: </label></th> |
56 <div class="smallNote" style="margin: 0;">Provide path to a parent directory on TeamCity server where a cloned repository should be created (applicable to "Automatically on server" checkout mode only). Leave blank to use default path.</div> | 58 <td><props:textProperty name="serverClonePath" className="longField"/> |
57 </td> | 59 <div class="smallNote" style="margin: 0;">Provide path to a parent directory on TeamCity server where a cloned repository should be created (applicable to "Automatically on server" checkout mode only). Leave blank to use default path.</div> |
58 </tr> | 60 </td> |
61 </tr> | |
62 </c:if> | |
59 <tr class="advancedSetting"> | 63 <tr class="advancedSetting"> |
60 <th><label for="detectSubrepoChanges">Detect subrepo changes: </label></th> | 64 <th><label for="detectSubrepoChanges">Detect subrepo changes: </label></th> |
61 <td> | 65 <td> |
62 <props:checkboxProperty name="detectSubrepoChanges"/> | 66 <props:checkboxProperty name="detectSubrepoChanges"/> |
63 <c:if test="${subreposGloballyDisabled}"> | 67 <c:if test="${subreposGloballyDisabled}"> |