You are here

search-follow-tag.html.twig in Open Social 10.1.x

{{ attach_library('social_follow_taxonomy/paragraph_tag') }}

{% if tags %}
<div class="paragraph paragraph--featured social_follow_tax">
  <div class="container">
    <div class="card teaser">
      <div class="teaser__body">
        {% for tag in tags %}
          <div class="teaser__content">
            <div class="teaser__left">
              <div class="teaser__tag">
                {% trans %}Tag{% endtrans %}
              </div>

              <div class="teaser__title">
                <h5>{{ tag.name }}</h5>
              </div>

              <div class="teaser__related-content">
                {% trans %} 1 item {% plural tag.related_entity_count %} @count items{% endtrans %}
                {% if term.followers_count %}
                  |
                  <span class="teaser__followers-count">
                  {% trans %} 1 follower {% plural tag.followers_count %} @count followers{% endtrans %}
                  </span>
                {% endif %}
              </div>
            </div>


            <div class="actions">
              {{ tag.flag }}
            </div>
          </div>
        {% endfor %}
      </div>
    </div>
  </div>
</div>
{% endif %}

File

modules/social_features/social_follow_taxonomy/modules/social_follow_tag/templates/search-follow-tag.html.twig
View source
  1. {{ attach_library('social_follow_taxonomy/paragraph_tag') }}
  2. {% if tags %}
  3. <div class="paragraph paragraph--featured social_follow_tax">
  4. <div class="container">
  5. <div class="card teaser">
  6. <div class="teaser__body">
  7. {% for tag in tags %}
  8. <div class="teaser__content">
  9. <div class="teaser__left">
  10. <div class="teaser__tag">
  11. {% trans %}Tag{% endtrans %}
  12. </div>
  13. <div class="teaser__title">
  14. <h5>{{ tag.name }}</h5>
  15. </div>
  16. <div class="teaser__related-content">
  17. {% trans %} 1 item {% plural tag.related_entity_count %} @count items{% endtrans %}
  18. {% if term.followers_count %}
  19. |
  20. <span class="teaser__followers-count">
  21. {% trans %} 1 follower {% plural tag.followers_count %} @count followers{% endtrans %}
  22. </span>
  23. {% endif %}
  24. </div>
  25. </div>
  26. <div class="actions">
  27. {{ tag.flag }}
  28. </div>
  29. </div>
  30. {% endfor %}
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. {% endif %}