{% 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 {{ action.class_string|safe }}" 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 %}

{% 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 %}

Remove inheritance of More action on first action
Remove inheritance of More action on first action

More indicator in the action dropdown should not inherit the class
of the first action. Any custom behavior attached to the first action
will also be inherited by More.

Example: If the first action had btn-danger, the More button become
red too. This might give the user the impression that More is also
a dangerous operation.

Fixes bug 1158419

Change-Id: Id078b738ba635ec47d2f32cde1917295f3ca5a79
