metric: Truncate the name.
This commit is contained in:
@@ -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…"|format(name[:100])|safe %}
|
||||||
|
{% endif %}
|
||||||
<small>{{name}}</small>
|
<small>{{name}}</small>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user