КОНТРОЛЫ/pipeline_toggler.md


Исходный код

Twig код

<div class="cubestats-toggler pipeline_toggler{% if class_name %} {{class_name}}{% endif %}{% if compact %} toggler-view_compact{% endif %}"{% if additional_data %} {{ additional_data|raw }}{% endif %}>
  <div id="dashborad_pipe_toggler" class="cubestats-toggler__wrapper">
    {% for pipe in pipelines %}
      {% if pipe.link %}
        <a class="cubestats-toggler__item{% if pipe.selected %} active{% endif %}{% if item_class_name %} {{item_class_name}}{% endif %}" href="{{ pipe.link }}" data-id="{{pipe.id}}">{{pipe.title}}</a>
      {% else %}
        <span class="cubestats-toggler__item{% if pipe.selected %} active{% endif %}{% if item_class_name %} {{item_class_name}}{% endif %}"{% if pipe.additional_data %} {{ pipe.additional_data|raw }}{% endif %} data-id="{{pipe.id}}">{{pipe.title}}</span>
      {% endif %}
    {% endfor %}

    <div id="dashborad_date_toggler-active"></div>
  </div>
</div>
Ссылка на вики репозиторий