Skip to content
Snippets Groups Projects
Commit 5a9189e0 authored by anonymous's avatar anonymous
Browse files

fix truncate

parent c764118b
No related branches found
No related tags found
No related merge requests found
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
%} %}
{% set label = label_function(item) if label_function else item.display_name %} {% set label = label_function(item) if label_function else item.display_name %}
{% set count = count_label(item['count']) if count_label else ('%d' % item['count']) %} {% set count = count_label(item['count']) if count_label else ('%d' % item['count']) %}
{% set digits = max([label|string|length,2)] %} {% set label_truncated = h.truncate(label, 25) if not label_function else label %}
{% set label_truncated = h.truncate(label, 29-digits) if not label_function else label %}
<li class="{{ nav_item_class or 'nav-item' }}"> <li class="{{ nav_item_class or 'nav-item' }}">
<div class="facet_label"> <div class="facet_label">
{# TODO: checkbox-id vereinheitlichen (code-duplikation) und sicher gegen Titel mit Leerzeichen machen! #} {# TODO: checkbox-id vereinheitlichen (code-duplikation) und sicher gegen Titel mit Leerzeichen machen! #}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment