You are here

opigno-learning-path-actions.html.twig in Opigno Learning path 3.x

{#
/*
 * @file
 * Default theme implementation for the LP actions dropdown.
 *
 * Avalable variables:
 * - actions: the list of action links.
 */
#}

{% if actions is not empty %}
  <div class="dropdown">
    <button class="dropdown-toggle" data-toggle="dropdown">
      <i class="fi fi-rr-menu-dots"></i>
    </button>

    <ul class="dropdown-menu dropdown-menu-right">
      {% for action in actions %}
        <li class="dropdown-item">{{ action }}</li>
      {% endfor %}
    </ul>
  </div>
{% endif %}

File

templates/opigno-learning-path-actions.html.twig
View source
  1. {#
  2. /*
  3. * @file
  4. * Default theme implementation for the LP actions dropdown.
  5. *
  6. * Avalable variables:
  7. * - actions: the list of action links.
  8. */
  9. #}
  10. {% if actions is not empty %}
  11. <div class="dropdown">
  12. <button class="dropdown-toggle" data-toggle="dropdown">
  13. <i class="fi fi-rr-menu-dots"></i>
  14. </button>
  15. <ul class="dropdown-menu dropdown-menu-right">
  16. {% for action in actions %}
  17. <li class="dropdown-item">{{ action }}</li>
  18. {% endfor %}
  19. </ul>
  20. </div>
  21. {% endif %}