{{!
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 class="container-fluid">
  <h1>Welcome to HueMigration View
  </h1>
  <h2>Please wait...
  </h2>
  {{#if errors}}
    <div class="progress progress-striped active">
      <div id="progressbarhivesavedquery" class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50"  style="width:{{progresBar}}%">
      </div>
    </div>
  {{else}}
    <div class="progress progress-striped active">
      <div id="progressbarhivesavedquery" class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="50"  style="width:{{progresBar}}%">
      </div>
    </div>
  {{/if}}
  <table class="table">
    <tbody>
    <tr>
      <td>
        {{#if huehttpurlTestDone}}
          {{#if huehttpurlTest}}
            <span class="glyphicon glyphicon-ok green">
          </span>
          {{else}}
            <span class="glyphicon glyphicon-remove red">
          </span>
          {{/if}}
        {{else}}
          <span class="glyphicon glyphicon-arrow-right">
          </span>
        {{/if}}
      </td>
      <td>
        Hue Http Test
      </td>
    </tr>
    <tr>
      <td>
        {{#if huewebhdfsurlTestDone}}
          {{#if huewebhdfsurlTest}}
            <span class="glyphicon glyphicon-ok green">
          </span>
          {{else}}
            <span class="glyphicon glyphicon-remove red">
          </span>
          {{/if}}
        {{else}}
          <span class="glyphicon glyphicon-arrow-right">
          </span>
        {{/if}}
      </td>
      <td>
        Hue Webhdfs Test
      </td>
    </tr>
    <tr>
      <td>
        {{#if ambariwebhdfsTestDone}}
          {{#if ambariwebhdfsTest}}
            <span class="glyphicon glyphicon-ok green">
          </span>
          {{else}}
            <span class="glyphicon glyphicon-remove red">
          </span>
          {{/if}}
        {{else}}
          <span class="glyphicon glyphicon-arrow-right">
          </span>
        {{/if}}
      </td>
      <td>
        Ambari Webhdfs Test
      </td>
    </tr>
    <tr>
      <td>
        {{#if huedatabasesTestDone}}
          {{#if huedatabasesTest}}
            <span class="glyphicon glyphicon-ok green">
          </span>
          {{else}}
            <span class="glyphicon glyphicon-remove red">
          </span>
          {{/if}}
        {{else}}
          <span class="glyphicon glyphicon-arrow-right">
          </span>
        {{/if}}
      </td>
      <td>
        Hue Database Test
      </td>
    </tr>
    <tr>
      <td>
        {{#if ambaridatabasesTestDone}}
          {{#if ambaridatabasesTest}}
            <span class="glyphicon glyphicon-ok green">
          </span>
          {{else}}
            <span class="glyphicon glyphicon-remove red">
          </span>
          {{/if}}
        {{else}}
          <span class="glyphicon glyphicon-arrow-right">
          </span>
        {{/if}}
      </td>
      <td>
        Ambari Database Test
      </td>
    </tr>
    </tbody>
  </table>
  {{#if errors}}
    <h3>Issues detected
    </h3>
    <p>{{{errors}}}
    </p>
  {{/if}}
  {{#if stackTrace}}
    <a href="#" {{action "toggleStackTrace" post}}>
      {{#if isExpanded}}
        <span class="glyphicon glyphicon-collapse-down">
    </span> Collapse Stack Trace
      {{else}}
        <span class="glyphicon glyphicon-expand">
    </span> Expand Stack Trace
      {{/if}}
    </a>
    {{#if isExpanded}}
      <pre class="prettyprint">
        {{stackTrace}}
      </pre>
    {{/if}}
  {{/if}}
</div>
