summaryrefslogtreecommitdiff
path: root/tuskar_ui/infrastructure/templates/infrastructure/_top_5_chart.html
blob: d4d730cfa6e7212e769800967be7e93521ea4ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% load i18n %}
{% load chart_helpers %}

<h4>
  {% trans 'Top 5 Nodes' %} ({{ top_5.label }}):
</h4>
{% if top_5.data %}
<table width="100%">
  {% for d in top_5.data %}
  <tr>
    <td>
      <a href="{% url 'horizon:infrastructure:nodes:node_detail' d.node_uuid %}">
        {{ d.node_uuid|truncatechars:6 }}
      </a>
    </td>
    <td>
      {{ d.value}} {{ top_5.unit }}
    </td>
    <td>
      {%if d.direction %}
      <i class="fa fa-arrow-{{d.direction}}"></i>
      {% endif %}
    </td>
  </tr>
  {% endfor %}
</table>
{% else %}
{% trans 'No data available.' %}
{% endif %}