better readability for drag and drop boxes (#2659)

This commit is contained in:
Kevin Papst
2021-07-13 12:12:10 +02:00
committed by GitHub
parent 27cea996c0
commit 03d5d3c70c
6 changed files with 16 additions and 20 deletions

View File

@@ -1,13 +1,7 @@
{% macro dd_event(title, customer, project, activity) %}
{% macro dd_event(title, customer, project, deprecated) %}
{% import "macros/widgets.html.twig" as widgets %}
{% if customer is not null %}
<span class="pull-right info-icon" data-toggle="tooltip" data-placement="top" title="{{ customer }}">{{ widgets.icon('customer') }}</span>
{% endif %}
{% if project is not null %}
<span class="pull-right info-icon" data-toggle="tooltip" data-placement="top" title="{{ project }}">{{ widgets.icon('project') }}</span>
{% endif %}
{% if activity is not null %}
<span class="pull-right info-icon" data-toggle="tooltip" data-placement="top" title="{{ activity }}">{{ widgets.icon('activity') }}</span>
{% endif %}
<span class="title">{{ title }}</span>
{% if project is not null %}
<span class="subtitle">{{ project }}{% if customer is not null %}, {{ customer }}{% endif %}</span>
{% endif %}
{% endmacro %}