mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-03 07:28:57 +02:00
Revert "N°8579 - remove "spaceless" in twig files"
This reverts commit ee993ef80a.
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
{# @copyright Copyright (C) 2010-2024 Combodo SAS #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
{# Dashboard Column #}
|
||||
{% if oUIBlock.IsEditMode() %}
|
||||
{% if oUIBlock.IsLastRow() %}
|
||||
{% set sCellClass = "layout_cell edit_mode layout_extension" %}
|
||||
{% apply spaceless %}
|
||||
{% if oUIBlock.IsEditMode() %}
|
||||
{% if oUIBlock.IsLastRow() %}
|
||||
{% set sCellClass = "layout_cell edit_mode layout_extension" %}
|
||||
{% else %}
|
||||
{% set sCellClass = "layout_cell edit_mode" %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% set sCellClass = "layout_cell edit_mode" %}
|
||||
{% set sCellClass = "dashboard" %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% set sCellClass = "dashboard" %}
|
||||
{% endif %}
|
||||
<div class="ibo-dashboard--grid-column ibo-dashboard--grid-cell {{ sCellClass }}"
|
||||
data-role="ibo-dashboard--grid-cell"
|
||||
data-dashboard-grid-column-index="{{ oUIBlock.GetColumnIndex() }}"
|
||||
data-dashboard-grid-cell-index="{{ oUIBlock.GetCellIndex() }}">
|
||||
{% for oSubBlock in oUIBlock.GetSubBlocks() %}
|
||||
{{- render_block(oSubBlock, {aPage: aPage}) -}}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="ibo-dashboard--grid-column ibo-dashboard--grid-cell {{ sCellClass }}"
|
||||
data-role="ibo-dashboard--grid-cell"
|
||||
data-dashboard-grid-column-index="{{ oUIBlock.GetColumnIndex() }}"
|
||||
data-dashboard-grid-cell-index="{{ oUIBlock.GetCellIndex() }}">
|
||||
{% for oSubBlock in oUIBlock.GetSubBlocks() %}
|
||||
{{ render_block(oSubBlock, {aPage: aPage}) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endapply %}
|
||||
Reference in New Issue
Block a user