view mercurial-server/resources/buildServerResources/mercurialSettings.jsp @ 603:256d3fc22a28

fix capitalization: labels should have first word capitalized only, while titles should have all words capitalized
author Pavel.Sher
date Thu, 06 Jun 2013 09:22:34 +0200
parents 91b58ee782ac
children 0b50d7952a7d
line wrap: on
line source
<%@ page import="jetbrains.buildServer.serverSide.TeamCityProperties" %>
<%@ page import="jetbrains.buildServer.buildTriggers.vcs.mercurial.Constants" %>
<%@include file="/include.jsp"%>
<%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %>
<jsp:useBean id="propertiesBean" scope="request" type="jetbrains.buildServer.controllers.BasePropertiesBean"/>
<script type="text/javascript">
window.updateBranchName = function(repoPath) {
  if (repoPath.indexOf('#') != -1 && $('branchName').value == '') {
    $('branchName').value = repoPath.substring(repoPath.indexOf('#')+1);
  }
}
</script>
<c:set var="subreposGloballyDisabled" value="<%= !TeamCityProperties.getBooleanOrTrue(Constants.GLOBAL_DETECT_SUBREPO_CHANGES) %>"/>
<table class="runnerFormTable">

  <l:settingsGroup title="General Settings">
  <tr>
    <th><label for="repositoryPath">Pull changes from: <l:star/></label></th>
    <td><props:textProperty name="repositoryPath" className="longField" onchange="updateBranchName(this.value)"/>
      <span class="error" id="error_repositoryPath"></span></td>
  </tr>
  <tr>
    <th><label for="branchName">Default branch: </label></th>
    <td>
        <props:textProperty name="branchName" />
        <div class="smallNote" style="margin: 0;">Branch to be used if no branch from Branch Specification is set</div>
    </td>
  </tr>
  <bs:branchSpecTableRow/>
  <tr>
    <th><label for="serverClonePath">Clone repository to: </label></th>
    <td><props:textProperty name="serverClonePath" className="longField"/>
      <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>
    </td>
  </tr>
  <tr>
    <th><label for="detectSubrepoChanges">Detect subrepo changes: </label></th>
      <td>
        <props:checkboxProperty name="detectSubrepoChanges"/>
        <c:if test="${subreposGloballyDisabled}">
          <div class="smallNote" style="margin: 0;">Currently <b>disabled</b> for the entire server with 'teamcity.hg.detectSubrepoChanges' internal property.</div>
        </c:if>
      </td>
    </tr>
  <tr>
    <th><label for="tagUsername">Username for tags: </label></th>
    <td><props:textProperty name="tagUsername"/>
      <div class="smallNote" style="margin: 0;">Format: User Name &lt;email&gt;</div>
    </td>
  </tr>
  <tr>
    <th><label for="uncompressedTransfer">Use uncompressed transfer: </label></th>
    <td><props:checkboxProperty name="uncompressedTransfer"/>
      <div class="smallNote" style="margin: 0;">Uncompressed transfer is faster for repositories in the LAN.</div>
    </td>
  </tr>
  <tr>
    <th><label for="hgCommandPath">HG command path: <l:star/></label></th>
    <td>
      <props:textProperty name="hgCommandPath" className="longField" />
      <span class="error" id="error_hgCommandPath"></span>
    </td>
  </tr>
  </l:settingsGroup>
  <l:settingsGroup title="Authorization Settings">
  <tr>
    <th><label for="username">User name:</label></th>
    <td>
      <props:textProperty name="username"/>
      <span class="smallNote">Leave blank to use settings from the server hgrc (see 'man hgrc' for details)</span>
    </td>
  </tr>
  <tr>
    <th><label for="secure:password">Password:</label></th>
    <td>
      <props:passwordProperty name="secure:password"/>
      <span class="smallNote">Leave blank to use settings from the server hgrc (see 'man hgrc' for details)</span>
    </td>
  </tr>
  </l:settingsGroup>

</table>