34 lines
678 B
HTML
34 lines
678 B
HTML
{% extends 'layout.html' %}
|
|
{% block content %}
|
|
<div class="page-header">
|
|
<h1>Metric
|
|
{% if name|length > 75 %}
|
|
{% set name = "%s…"|format(name[:75])|safe %}
|
|
{% else %}
|
|
{% set name = name %}
|
|
{% endif %}
|
|
<small>{{name}}</small>
|
|
</h1>
|
|
</div>
|
|
<table class="ui segment table">
|
|
<thead>
|
|
<tr>
|
|
<th>Option</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for key,value in metric %}
|
|
<tr>
|
|
<td>{{key}}</td>
|
|
{% if value is mapping %}
|
|
<td><pre>{{value|jsonprint}}</pre></td>
|
|
{% else %}
|
|
<td>{{value}}</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock content %}
|