diff --git a/plugins/CoreHome/templates/datatable_cell.twig b/plugins/CoreHome/templates/datatable_cell.twig index dab9a6401d9918888d36b66159c95fb6ccac2ef5..d18db8c56961763d63fbb35f55581366d7c4f482 100644 --- a/plugins/CoreHome/templates/datatable_cell.twig +++ b/plugins/CoreHome/templates/datatable_cell.twig @@ -1,4 +1,4 @@ -{% set tooltipIndex %}{{ column }}_tooltip{% endset %} +{% set tooltipIndex = column ~ '_tooltip' %} {% if row.metadata[tooltipIndex] is defined %}<span class="cell-tooltip" data-tooltip="{{ row.metadata[tooltipIndex] }}">{% endif %} {% if not row.idsubdatatable and column=='label' and row.metadata.url is not empty %} <a target="_blank" href='{% if row.metadata.url|slice(0,4) not in ['http','ftp:'] %}http://{% endif %}{{ row.metadata.url }}'> @@ -20,4 +20,4 @@ {% if not row.idsubdatatable and column=='label' and row.metadata.url is not empty %} </a> {% endif %} -{% if row.metadata[tooltipIndex] is defined %}</span>{% endif %} \ No newline at end of file +{% if row.metadata[tooltipIndex] is defined %}</span>{% endif %}