<span class="flag-content">
  <% if show_flag_action? comment %>
    <span class="divider">&nbsp;|&nbsp;</span>
    <a id="flag-expand-comment-<%= comment.id %>"
    data-toggle="flag-drop-comment-<%= comment.id %>"
    title="<%= t('shared.flag') %>">
      <span class="icon-flag flag-disable"></span>
    </a>
    <div id="flag-drop-comment-<%= comment.id %>"
         class="dropdown-pane"
         data-dropdown
         data-auto-focus="true">
      <%= link_to t("shared.flag"), flag_comment_path(comment), method: :put,
                  remote: true, id: "flag-comment-#{comment.id}" %>
    </div>
  <% end %>

  <% if show_unflag_action? comment %>
    <span class="divider">&nbsp;|&nbsp;</span>
    <a id="unflag-expand-comment-<%= comment.id %>"
       data-toggle="unflag-drop-comment-<%= comment.id %>"
       title="<%= t('shared.unflag') %>">
      <span class="icon-flag flag-active"></span>
    </a>
    <div class="dropdown-pane" id="unflag-drop-comment-<%= comment.id %>" data-dropdown data-auto-focus="true">
      <%= link_to t("shared.unflag"), unflag_comment_path(comment), method: :put,
                  remote: true, id: "unflag-comment-#{comment.id}" %>
    </div>
  <% end %>
</span>
