<tr data-ds-query-name="{{name}}">
  <th data-ds-query-name="{{name}}" class="ds-query-name">{{name}}</th>
  <td data-ds-query-name="{{name}}" class="ds-query-target">{{targets}}</td>
  <td>
    <div class="btn-group">
      <button class="btn btn-default btn-small ds-duplicate-query-button"
              data-toggle="tooltip"
              title="Duplicate this query"
              data-ds-query-name="{{name}}">
        <i class="fa fa-copy"></i>
      </button>
      <button class="btn btn-default btn-small ds-delete-query-button"
              data-toggle="tooltip"
              title="Delete this query"
              data-ds-query-name="{{name}}">
        <i class="fa fa-trash-o"></i>
      </button>
    </div>
  </td>
</tr>

<tr data-ds-query-name="{{name}}">
  <th data-ds-query-name="{{name}}" class="ds-query-name">{{name}}</th>
  <td data-ds-query-name="{{name}}" class="ds-query-target">{{targets}}</td>
  <td>
      <button class="btn btn-default btn-small ds-duplicate-query-button"
              data-toggle="tooltip"
              title="Duplicate this query"
              data-ds-query-name="{{name}}">
        <i class="fa fa-copy fa-fw"></i>
      </button>
      <button class="btn btn-default btn-small ds-delete-query-button"
              data-toggle="tooltip"
              title="Delete this query"
              data-ds-query-name="{{name}}">
        <i class="fa fa-trash-o fa-fw"></i>
      </button>
  </td>
</tr>

Clean up the rendering of the query duplicate/delete buttons
Clean up the rendering of the query duplicate/delete buttons
