You are here

gutenberg-cloud--details.html.twig in Gutenberg 8

{% set base_class = 'gutenberg-cloud-details' %}

<div class="{{ base_class }}">
  <div class="{{ base_class }}__picture">
    <img src="{{ picture }}" />
  </div>
  <div class="{{ base_class }}__info">
    <div class="heading">
      <h2>{{ name }}</h2> Version: {{ version }}
    </div>
    {% if author %}
      <div class="author">
        {{ 'By'|t }} <a href="{{ author_url }}">{{ author }}</a>
      </div>
    {% endif %}
    <div class="details">
      {{ description }}
    </div>
    {% if tags %}
      <div class="tags">
        <strong>{{ 'Tags'|t }}:</strong> {{ tags|join(', ') }}
      </div>
    {% endif %}
  </div>
</div>

File

modules/gutenberg_cloud/templates/gutenberg-cloud--details.html.twig
View source
  1. {% set base_class = 'gutenberg-cloud-details' %}
  2. <div class="{{ base_class }}">
  3. <div class="{{ base_class }}__picture">
  4. <img src="{{ picture }}" />
  5. </div>
  6. <div class="{{ base_class }}__info">
  7. <div class="heading">
  8. <h2>{{ name }}</h2> Version: {{ version }}
  9. </div>
  10. {% if author %}
  11. <div class="author">
  12. {{ 'By'|t }} <a href="{{ author_url }}">{{ author }}</a>
  13. </div>
  14. {% endif %}
  15. <div class="details">
  16. {{ description }}
  17. </div>
  18. {% if tags %}
  19. <div class="tags">
  20. <strong>{{ 'Tags'|t }}:</strong> {{ tags|join(', ') }}
  21. </div>
  22. {% endif %}
  23. </div>
  24. </div>