blob: 8619da17f131799632cb1827ef22a30a20c73c3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{% load horizon i18n %}
{% spaceless %} {# This makes sure whitespace doesn't affect positioning for dropdown. #}
{% if row_actions|length > 1 %}
<div class="btn-group">
{% for action in row_actions %}
{% if forloop.first %}
{% include "horizon/common/_data_table_row_action.html" %}
<a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
{% trans "More" %}
<span class="caret"></span>
</a>
<ul class="dropdown-menu row_actions clearfix">
{% else %}
<li class="clearfix">
{% include "horizon/common/_data_table_row_action.html" %}
</li>
{% endif %}
{% if forloop.last %}
</ul>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if row_actions|length == 1%}
{% for action in row_actions %}
{% include "horizon/common/_data_table_row_action.html" %}
{% endfor %}
{% endif %}
{% endspaceless %}
|