You are here

maestro-status-bar.html.twig in Maestro 3.x

Same filename and directory in other branches
  1. 8.2 templates/maestro-status-bar.html.twig
<div class="maestro-timeline-wrapper">
  {% for i in range(1,stage_count) %}
    {% set msg = stage_messages[i].message %}
    {% if i == current_stage %}
      {% set class = 'maestro-status-circle-current' %}
      {% set msg = current_stage_message %}
    {% elseif i < current_stage %}
      {% set class = 'maestro-status-circle-complete' %}
    {% else %}
      {% set class = 'maestro-status-circle-incomplete' %}
    {% endif %}
    
    <div class="{{ class }}" title="{{ msg }}">
      <span>{{ i }}</span>
    </div>
    <div class="stage-status-message">
      {{ msg }}
    </div>
    {% if i < stage_count %}
      <div class="{{ class }}-bar"> </div>
    {% endif %}
  {% endfor %}
</div>

File

templates/maestro-status-bar.html.twig
View source
  1. <div class="maestro-timeline-wrapper">
  2. {% for i in range(1,stage_count) %}
  3. {% set msg = stage_messages[i].message %}
  4. {% if i == current_stage %}
  5. {% set class = 'maestro-status-circle-current' %}
  6. {% set msg = current_stage_message %}
  7. {% elseif i < current_stage %}
  8. {% set class = 'maestro-status-circle-complete' %}
  9. {% else %}
  10. {% set class = 'maestro-status-circle-incomplete' %}
  11. {% endif %}
  12. <div class="{{ class }}" title="{{ msg }}">
  13. <span>{{ i }}</span>
  14. </div>
  15. <div class="stage-status-message">
  16. {{ msg }}
  17. </div>
  18. {% if i < stage_count %}
  19. <div class="{{ class }}-bar"> </div>
  20. {% endif %}
  21. {% endfor %}
  22. </div>