<%
var attributes = '';
if (timefield) {
  attributes='class="discover-table-timefield" width="1%"';
} else if (sourcefield) {
  attributes='class="discover-table-sourcefield"';
} else {
  attributes='class="discover-table-datafield"';
}
%>
<td <%= attributes %> data-test-subj="docTableField">
  <%= formatted %>
  <span class="table-cell-filter">
    <% if (filterable) { %>
      <button
        ng-click="inlineFilter($event, '+')"
        class="fa fa-search-plus docTableRowFilterButton"
        data-column="<%- column %>"
        tooltip="Filter for value"
        tooltip-append-to-body="1"
      ></button>

      <button
        ng-click="inlineFilter($event, '-')"
        class="fa fa-search-minus docTableRowFilterButton"
        data-column="<%- column %>"
        tooltip="Filter out value"
        tooltip-append-to-body="1"
      ></button>
    <% } %>
  </span>
</td>
