You are here

opigno-pm-thread-actions.html.twig in Opigno messaging 3.x

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

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

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

File

templates/opigno-pm-thread-actions.html.twig
View source
  1. {#
  2. /*
  3. * @file
  4. * Default theme implementation for the PM thread 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="comment-item__edit-btn dropdown-toggle" data-toggle="dropdown">
  13. <i class="fi fi-rr-menu-dots"></i>
  14. </button>
  15. <ul class="comment-item__edit-menu 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 %}