{{!
 * 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="top-1">
  <span class="yarn-label primary">
    <span class="label-key">absolute used</span>
    <span class="label-value">{{data.absoluteUsedCapacity}}%</span>
  </span>
  <span class="yarn-label primary">
    <span class="label-key">absolute capacity</span>
    <span class="label-value">{{data.absoluteCapacity}}%</span>
  </span>
  <span class="yarn-label secondary">
    <span class="label-key">absolute max capacity</span>
    <span class="label-value">{{data.absoluteMaxCapacity}}%</span>
  </span>
</div>
{{#if data.isWeightMode}}
<div class="top-1">
  <span class="yarn-label secondary">
    <span class="label-key">weight</span>
    <span class="label-value">{{data.weight}}</span>
  </span>
  <span class="yarn-label secondary">
    <span class="label-key">normalized weight</span>
    <span class="label-value">{{data.normalizedWeight}}</span>
  </span>
</div>
{{else}}
<div class="top-1">
  <span class="yarn-label secondary">
    <span class="label-key">configured capacity</span>
    <span class="label-value">{{data.capacity}}%</span>
  </span>
  <span class="yarn-label secondary">
    <span class="label-key">configured max capacity</span>
    <span class="label-value">{{data.maxCapacity}}%</span>
  </span>
</div>
{{/if}}
{{#if data.isLeafQueue}}
<div class="top-1">
  <span class="yarn-label secondary">
    <span class="label-key">user limit</span>
    <span class="label-value">{{data.userLimit}}%</span>
  </span>
  <span class="yarn-label secondary">
    <span class="label-key">user limit factor</span>
    <span class="label-value">{{data.userLimitFactor}}</span>
  </span>
</div>
{{/if}}
{{#if data.isFlexibleDynamicQueue}}
<div class="top-1">
  <span class="yarn-label secondary">
    <span class="label-key">flexible dynamic queue</span>
  </span>
</div>
{{/if}}
