You are here

layouts--1.html.twig in Dashboards with Layout Builder 8

Same filename and directory in other branches
  1. 2.0.x templates/layouts/layouts--1.html.twig
<section {{ attributes.addClass('layouts-dashboards-1', 'layouts-dashboards') }}>
  <div class="drow">
    {% if content.one %}
    <div {{ region_attributes.one }}>
      {{ content.one }}
    </div>
    {% endif %}
    {% if content.two %}
    <div {{ region_attributes.two }}>
      {{ content.two }}
    </div>
    {% endif %}
  </div>
  {% if content.three %}
  <div class="drow">
    <div {{ region_attributes.three }}>
      {{ content.three }}
    </div>
  </div>
  {% endif %}
</section>

File

templates/layouts/layouts--1.html.twig
View source
  1. <section {{ attributes.addClass('layouts-dashboards-1', 'layouts-dashboards') }}>
  2. <div class="drow">
  3. {% if content.one %}
  4. <div {{ region_attributes.one }}>
  5. {{ content.one }}
  6. </div>
  7. {% endif %}
  8. {% if content.two %}
  9. <div {{ region_attributes.two }}>
  10. {{ content.two }}
  11. </div>
  12. {% endif %}
  13. </div>
  14. {% if content.three %}
  15. <div class="drow">
  16. <div {{ region_attributes.three }}>
  17. {{ content.three }}
  18. </div>
  19. </div>
  20. {% endif %}
  21. </section>