metric: Truncate the name.

This commit is contained in:
Daniele Sluijters
2013-11-05 14:12:47 +01:00
parent de6a77951c
commit 3efdb58ce3

View File

@@ -2,6 +2,9 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h1>Metric <h1>Metric
{% if name|length > 100 %}
{% set name = "%s&hellip;"|format(name[:100])|safe %}
{% endif %}
<small>{{name}}</small> <small>{{name}}</small>
</h1> </h1>
</div> </div>