"Fossies" - the Fresh Open Source Software Archive

Member "horizon-16.0.0/horizon/templates/horizon/common/_data_table_row_actions_dropdown.html" (16 Oct 2019, 996 Bytes) of package /linux/misc/openstack/horizon-16.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {% load horizon i18n %}
    2 
    3 {% spaceless %} {# This makes sure whitespace doesn't affect positioning for dropdown. #}
    4 
    5   {% if row_actions|length == 1 %}
    6     {% include "horizon/common/_data_table_action.html" with action=row_actions.0 is_single=1 is_small=0 %}
    7   {% elif row_actions|length > 1 %}
    8     <div class="btn-group">
    9       {% for action in row_actions %}
   10         {% if forloop.first %}
   11           {% include "horizon/common/_data_table_action.html" with is_small=1 is_single=1 %}
   12           <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" href="#">
   13             <span class="fa fa-caret-down"></span>
   14           </a>
   15           <ul class="dropdown-menu dropdown-menu-right row_actions">
   16         {% else %}
   17           <li>
   18             {% include "horizon/common/_data_table_action.html" with is_small=0 %}
   19           </li>
   20         {% endif %}
   21         {% if forloop.last %}
   22           </ul>
   23         {% endif %}
   24       {% endfor %}
   25     </div>
   26   {% endif %}
   27 
   28 {% endspaceless %}