<commit_before>{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}
<div id="select-stack">
  <h2>{{t installer.step1.header}}</h2>
  <p class="alert alert-info">{{t installer.step1.body}}</p>

  {{! left tabs }}
  <div class="row-fluid">
    <div class="span2">
      <ul class="nav nav-tabs tabs-left">
        {{#each stack in availableStackTypes}}
          <li {{bindAttr class="stack.isSelected:active"}}><a {{action "selectRepoInList" stack target="controller"}} href="#">{{stack.stackName}}</a></li>
        {{/each}}
      </ul>
    </div>

    <div class="span10">
      <div class="tab-content">
        <div class="accordion-group details-panel">
          <div class="accordion-body">
            <div class="accordion-inner">
              <div class="row-fluid">
                <div class="version-info">
                  <div class="btn-group">
                    <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-info">{{controller.selectedStack.displayName}} <span class="caret"></span></button>
                    <ul class="dropdown-menu">
                      {{#each stack in selectedStackType.stacks}}
                        <li>
                          {{!view view.stackRadioButton stackBinding="stack"}}
                          <a href="#" {{action "changeVersion" stack target="controller"}}>{{stack.displayName}}
                            {{#if stack.stackDefault}}
                              ({{t installer.step1.changeVersion.defaultVersion}})
                            {{/if}}
                          </a>
                        </li>
                      {{/each}}
                      <li><a href="#" {{action "uploadVdf" target="controller"}}>{{t installer.step1.addVersion}} ...</a></li>
                    </ul>
                  </div>
                </div>
                <div class="version-contents-section">
                  {{#unless servicesForSelectedStack}}
                    <div class="alert alert-info" role="alert">{{t installer.step1.useLocalRepo.infoForm.content.empty}}</div>
                  {{/unless}}
                  <table class="table table-striped table-condensed">
                  {{#each service in servicesForSelectedStack}}
                    <tr>
                      <td class="span4">{{service.displayName}}</td>
                      <td class="span8">{{service.latestVersion}}</td>
                    </tr>
                  {{/each}}
                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  {{! left tabs end }}

  {{! Public Repository radio }}
  <label {{bindAttr class=":radio :big-radio :public-radio"}}>
    {{view view.usePublicRepoRadioButton}} {{t installer.step1.selectUseRepoOptions.public}}
    {{#if networkIssuesExist}}
      <a id="public-disabled-link" {{action "openPublicOptionDisabledWindow" target="view"}}>{{t installer.step1.selectUseRepoOptions.public.networkLost}}</a>
    {{/if}}
  </label>
  {{! Public Repository radio END }}

  {{!--Local repo loaded info below--}}
  <label class="radio big-radio">{{view view.useLocalRepoRadioButton}} {{t installer.step1.selectUseRepoOptions.local}}</label>

  {{#if App.router.nextBtnClickInProgress}}
    {{view App.SpinnerView}}
  {{else}}
  <form id="repoVersionInfoForm" class="form-horizontal" role="form" name="localVersionInfoForm" novalidate>

    <div class="accordion-group repos-panel">
      <div class="accordion-heading">
        <p>{{t common.repositories}}</p>
      </div>
      <div class="accordion-body version-contents-body">
        <div class="accordion-inner">
          <div class="alert alert-info" role="alert">{{t installer.step1.useLocalRepo.infoForm.alert.baseUrl}}</div>
          {{#if view.showWarning}}
            <div class="alert">{{t installer.step1.attentionNeeded}}</div>
          {{/if}}

          {{! OSes and Repositories }}
          <div class="clearfix repo-table-title row-fluid">
            <div class="span2"><label>{{t common.os}}</label></div>
            <div class="span9">
              <div class="span3"><label>{{t common.name}}</label></div>
              <div class="span1"></div>
              <div class="span8"><label>{{t installer.step1.advancedRepo.localRepo.column.baseUrl}}</label></div>
            </div>
            <div class="span1">
              {{! Add OS }}
              <div class="add-os-button btn-group pull-right">
                <button
                  type="button" {{bindAttr data-original-title="view.addOsButtonTooltip"  class=":btn :dropdown-toggle :add-os-button view.isAddOsButtonDisabled:disabled"}}
                  data-toggle="dropdown">
                  <i class="icon-plus"></i> {{t common.add}} &nbsp;<span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                  {{#each operatingSystem in selectedStack.operatingSystems}}
                    {{#unless operatingSystem.isSelected}}
                      <li><a {{action "addOS" operatingSystem target="controller"}}>{{operatingSystem.osType}}</a></li>
                    {{/unless}}
                  {{/each}}
                </ul>
              </div>
              {{! Add OS END}}
            </div>
          </div>

          {{#each operatingSystem in selectedStack.operatingSystems}}
            {{#if operatingSystem.isSelected}}
              <div class="clearfix row-fluid border-bottom">
                <div class="span2 os-type-label">
                  <label>{{operatingSystem.osType}}</label>
                </div>
                <div class="span9 repo-name-url">
                  {{#each repository in operatingSystem.repositories}}
                    <div class="clearfix repo-name-url-inner">
                      <div class="span3">
                        <label class="repo-name-label control-label">{{repository.repoId}}</label>
                      </div>
                      <div class="validation-td span1">
                        {{#if repository.validation}}
                          {{view view.popoverView repositoryBinding="repository"}}
                        {{/if}}
                      </div>
                      <div {{bindAttr class=":span8 :repo-url repository.invalidFormatError:textfield-error repository.invalidError:textfield-error"}}>
                        {{view Ember.TextField placeholderBinding="repository.placeholder" valueBinding="repository.baseUrl" disabledBinding="controller.selectedStack.useRedhatSatellite"}}
                          {{#if controller.selectedStack.usePublicRepo}}
                            {{#if repository.undo}}
                              <i class="icon-undo" data-toggle="tooltip"
                                {{action "doRestoreDefaultValue" repository target="controller"}}
                                {{translateAttr title="common.undo"}}>
                              </i>
                            {{/if}}
                          {{else}}
                            {{#if repository.notEmpty}}
                              <i class="icon-undo" data-toggle="tooltip"
                                {{action "doRestoreToEmpty" repository target="controller"}}
                                {{translateAttr title="common.undo"}}>
                              </i>
                            {{/if}}
                          {{/if}}
                      </div><commit_msg>AMBARI-17755 Add css classes to Select Version page (akovalenko)<commit_after>{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}
<div id="select-stack">
  <h2>{{t installer.step1.header}}</h2>
  <p class="alert alert-info">{{t installer.step1.body}}</p>

  {{! left tabs }}
  <div class="row-fluid">
    <div class="span2">
      <ul class="nav nav-tabs tabs-left">
        {{#each stack in availableStackTypes}}
          <li {{bindAttr class="stack.isSelected:active"}}><a {{action "selectRepoInList" stack target="controller"}} href="#">{{stack.stackName}}</a></li>
        {{/each}}
      </ul>
    </div>

    <div class="span10">
      <div class="tab-content">
        <div class="accordion-group details-panel">
          <div class="accordion-body">
            <div class="accordion-inner">
              <div class="row-fluid">
                <div class="version-info">
                  <div class="btn-group">
                    <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-info">{{controller.selectedStack.displayName}} <span class="caret"></span></button>
                    <ul class="dropdown-menu">
                      {{#each stack in selectedStackType.stacks}}
                        <li>
                          {{!view view.stackRadioButton stackBinding="stack"}}
                          <a href="#" {{action "changeVersion" stack target="controller"}}>{{stack.displayName}}
                            {{#if stack.stackDefault}}
                              ({{t installer.step1.changeVersion.defaultVersion}})
                            {{/if}}
                          </a>
                        </li>
                      {{/each}}
                      <li><a href="#" {{action "uploadVdf" target="controller"}}>{{t installer.step1.addVersion}} ...</a></li>
                    </ul>
                  </div>
                </div>
                <div class="version-contents-section">
                  {{#unless servicesForSelectedStack}}
                    <div class="alert alert-info" role="alert">{{t installer.step1.useLocalRepo.infoForm.content.empty}}</div>
                  {{/unless}}
                  <table class="table table-striped table-condensed">
                  {{#each service in servicesForSelectedStack}}
                    <tr>
                      <td class="span4">{{service.displayName}}</td>
                      <td class="span8">{{service.latestVersion}}</td>
                    </tr>
                  {{/each}}
                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  {{! left tabs end }}

  {{! Public Repository radio }}
  <label {{bindAttr class=":radio :big-radio :public-radio"}}>
    {{view view.usePublicRepoRadioButton}} {{t installer.step1.selectUseRepoOptions.public}}
    {{#if networkIssuesExist}}
      <a id="public-disabled-link" {{action "openPublicOptionDisabledWindow" target="view"}}>{{t installer.step1.selectUseRepoOptions.public.networkLost}}</a>
    {{/if}}
  </label>
  {{! Public Repository radio END }}

  {{!--Local repo loaded info below--}}
  <label class="radio big-radio">{{view view.useLocalRepoRadioButton}} {{t installer.step1.selectUseRepoOptions.local}}</label>

  {{#if App.router.nextBtnClickInProgress}}
    {{view App.SpinnerView}}
  {{else}}
  <form id="repoVersionInfoForm" class="form-horizontal" role="form" name="localVersionInfoForm" novalidate>

    <div class="accordion-group repos-panel">
      <div class="accordion-heading">
        <p>{{t common.repositories}}</p>
      </div>
      <div class="accordion-body version-contents-body">
        <div class="accordion-inner">
          <div class="alert alert-info" role="alert">{{t installer.step1.useLocalRepo.infoForm.alert.baseUrl}}</div>
          {{#if view.showWarning}}
            <div class="alert">{{t installer.step1.attentionNeeded}}</div>
          {{/if}}

          {{! OSes and Repositories }}
          <div class="clearfix repo-table-title row-fluid">
            <div class="span2"><label>{{t common.os}}</label></div>
            <div class="span9">
              <div class="span3"><label>{{t common.name}}</label></div>
              <div class="span1"></div>
              <div class="span8"><label>{{t installer.step1.advancedRepo.localRepo.column.baseUrl}}</label></div>
            </div>
            <div class="span1">
              {{! Add OS }}
              <div class="add-os-button btn-group pull-right">
                <button
                  type="button" {{bindAttr data-original-title="view.addOsButtonTooltip"  class=":btn :dropdown-toggle :add-os-button view.isAddOsButtonDisabled:disabled"}}
                  data-toggle="dropdown">
                  <i class="icon-plus"></i> {{t common.add}} &nbsp;<span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                  {{#each operatingSystem in selectedStack.operatingSystems}}
                    {{#unless operatingSystem.isSelected}}
                      <li><a {{action "addOS" operatingSystem target="controller"}}>{{operatingSystem.osType}}</a></li>
                    {{/unless}}
                  {{/each}}
                </ul>
              </div>
              {{! Add OS END}}
            </div>
          </div>

          {{#each operatingSystem in selectedStack.operatingSystems}}
            {{#if operatingSystem.isSelected}}
              <div {{bindAttr class=":clearfix :row-fluid :border-bottom operatingSystem.osType"}}>
                <div class="span2 os-type-label">
                  <label>{{operatingSystem.osType}}</label>
                </div>
                <div class="span9 repo-name-url">
                  {{#each repository in operatingSystem.repositories}}
                    <div {{bindAttr class=":clearfix :repo-name-url-inner repository.repoName"}}>
                      <div class="span3">
                        <label class="repo-name-label control-label">{{repository.repoId}}</label>
                      </div>
                      <div class="validation-td span1">
                        {{#if repository.validation}}
                          {{view view.popoverView repositoryBinding="repository"}}
                        {{/if}}
                      </div>
                      <div {{bindAttr class=":span8 :repo-url repository.invalidFormatError:textfield-error repository.invalidError:textfield-error"}}>
                        {{view Ember.TextField placeholderBinding="repository.placeholder" valueBinding="repository.baseUrl" disabledBinding="controller.selectedStack.useRedhatSatellite"}}
                          {{#if controller.selectedStack.usePublicRepo}}
                            {{#if repository.undo}}
                              <i class="icon-undo" data-toggle="tooltip"
                                {{action "doRestoreDefaultValue" repository target="controller"}}
                                {{translateAttr title="common.undo"}}>
                              </i>
                            {{/if}}
                          {{else}}
                            {{#if repository.notEmpty}}
                              <i class="icon-undo" data-toggle="tooltip"
                                {{action "doRestoreToEmpty" repository target="controller"}}
                                {{translateAttr title="common.undo"}}>
                              </i>
                            {{/if}}
                          {{/if}}
                      </div>
{'fraction_non_alphanumeric': 0.1427279850521367, 'fraction_numerical': 0.004279428605870653, 'mean_word_length': 1.8275391956373552, 'pattern_counts': {'":': 8, '<': 259, '<?xml version=': 0, '>': 259, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1547721', 'n_tokens_mistral': 4428, 'n_tokens_neox': 4171, 'n_words': 939}