Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.3 KiB

5 years ago
  1. <div class="dashboard-grid-center" id="grid-center">
  2. {% for block in blocks.top %}
  3. {% if block.roles|length == 0 or is_granted_affirmative(block.roles) %}
  4. <div class="{{ block.class }}">
  5. {{ sonata_block_render({ 'type': block.type, 'settings': block.settings}) }}
  6. </div>
  7. {% endif %}
  8. {% endfor %}
  9. {% for block in blocks.center %}
  10. {% if block.roles|length == 0 or is_granted_affirmative(block.roles) %}
  11. <div class="{{ block.class }}">
  12. {{ sonata_block_render({ 'type': block.type, 'settings': block.settings}) }}
  13. </div>
  14. {% endif %}
  15. {% endfor %}
  16. {% for block in blocks.down %}
  17. {% if block.roles|length == 0 or is_granted_affirmative(block.roles) %}
  18. <div class="{{ block.class }}">
  19. {{ sonata_block_render({ 'type': block.type, 'settings': block.settings}) }}
  20. </div>
  21. {% endif %}
  22. {% endfor %}
  23. </div>
  24. <div class="dashboard-grid-right" id="grid-right">
  25. {% for block in blocks.right %}
  26. {% if block.roles|length == 0 or is_granted_affirmative(block.roles) %}
  27. <div class="{{ block.class }}">
  28. {{ sonata_block_render({ 'type': block.type, 'settings': block.settings}) }}
  29. </div>
  30. {% endif %}
  31. {% endfor %}
  32. </div>