You are here

smart-date-recurring-formatter.html.twig in Smart Date 3.2.x

<div class="recurring-output--wrapper">
  <div class="next_instance">
    {{ next_display }}
  </div>
  <div class="rule-text">{{ rule_text }}</div>
  {% if past_display %}
  <details open="open">
    <summary>{{ 'Recent'|t }}</summary>
    <div class="details-wrapper">
      {{ past_display }}
    </div>
  </details>
  {% endif %}
{% if upcoming_display and upcoming_display['#items'] %}
    <details open="open">
      <summary>{{ 'Upcoming'|t }}</summary>
      <div class="details-wrapper">
        {{ upcoming_display }}
      </div>
    </details>
  {% endif %}
</div>

File

modules/smart_date_recur/templates/smart-date-recurring-formatter.html.twig
View source
  1. <div class="recurring-output--wrapper">
  2. <div class="next_instance">
  3. {{ next_display }}
  4. </div>
  5. <div class="rule-text">{{ rule_text }}</div>
  6. {% if past_display %}
  7. <details open="open">
  8. <summary>{{ 'Recent'|t }}</summary>
  9. <div class="details-wrapper">
  10. {{ past_display }}
  11. </div>
  12. </details>
  13. {% endif %}
  14. {% if upcoming_display and upcoming_display['#items'] %}
  15. <details open="open">
  16. <summary>{{ 'Upcoming'|t }}</summary>
  17. <div class="details-wrapper">
  18. {{ upcoming_display }}
  19. </div>
  20. </details>
  21. {% endif %}
  22. </div>