Add menu truncation

This commit is contained in:
R. Miles McCain 2020-04-15 17:53:33 -04:00
parent 600f554f51
commit 29c0d6e078
No known key found for this signature in database
GPG Key ID: 91CB47BDDF2671A5

View File

@ -39,7 +39,7 @@
{% for service in user.owning_services.all %} {% for service in user.owning_services.all %}
{% url 'dashboard:service' service.uuid as url %} {% url 'dashboard:service' service.uuid as url %}
{% include 'dashboard/includes/sidebar_portal.html' with label=service.name url=url %} {% include 'dashboard/includes/sidebar_portal.html' with label=service.name|truncatechars:20 url=url %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
@ -58,7 +58,7 @@
{% for service in user.collaborating_services.all %} {% for service in user.collaborating_services.all %}
{% url 'dashboard:service' service.uuid as url %} {% url 'dashboard:service' service.uuid as url %}
{% include 'dashboard/includes/sidebar_portal.html' with label=service.name url=url %} {% include 'dashboard/includes/sidebar_portal.html' with label=service.name|truncatechars:20 url=url %}
{% endfor %} {% endfor %}
<hr class="sep h-8"> <hr class="sep h-8">