{% load horizon i18n %}

{% spaceless %} {# This makes sure whitespace doesn't affect positioning for dropdown. #}
{% if row_actions|length > 1 %}
<div class="btn-group {% if pull_right %}pull-right{% endif %}">
    {% for action in row_actions %}
        {% if forloop.first %}
          {% include "horizon/common/_data_table_row_action_dropdown.html" %}
          <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" href="#">
            <span class="caret"></span>
          </a>
          <ul class="dropdown-menu row_actions clearfix">
        {% else %}
          <li class="clearfix">
              {% include "horizon/common/_data_table_row_action_dropdown.html" %}
          </li>
        {% endif %}
        {% if forloop.last %}
          </ul>
        {% endif %}
    {% endfor %}
</div>
{% endif %}
{% if row_actions|length == 1%}
  {% include "horizon/common/_data_table_row_action_dropdown.html" with action=row_actions.0%}
{% 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 {% if pull_right %}pull-right{% endif %}">
    {% for action in row_actions %}
        {% if forloop.first %}
          {% include "horizon/common/_data_table_row_action_dropdown.html" %}
          <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" href="#">
            <span class="caret"></span>
          </a>
          <ul class="dropdown-menu row_actions dropdown-menu-right clearfix">
        {% else %}
          <li class="clearfix">
              {% include "horizon/common/_data_table_row_action_dropdown.html" %}
          </li>
        {% endif %}
        {% if forloop.last %}
          </ul>
        {% endif %}
    {% endfor %}
</div>
{% endif %}
{% if row_actions|length == 1%}
  {% include "horizon/common/_data_table_row_action_dropdown.html" with action=row_actions.0%}
{% endif %}
{% endspaceless %}

Set row action dropdown to right-align
Set row action dropdown to right-align

Added dropdown-menu-right to row action dropdowns so that
menus with long titles don't extend out of the view.

Change-Id: Ifafeec3a79e6b8e42381405039d0d0dcf3cd7d71
Closes-Bug: #1392394
Closes-Bug: #1300868
