<div class="col-sm-12">
  <div class="table-responsive">
    <table ng-table="table.params" class="table table-condensed table-hover table-bordered">
      <tr ng-repeat="item in $data | filter: searchText">
        <td data-title="'Activo'" sortable="'active'">{{item.active ? 'Sim' : 'Não'}}</td>
        <td data-title="'Alerta'" sortable="'name'">{{item.name}}</td>
        <td data-title="'De'">
          <small ng-if="item.fromSelf">Próprio </small>
          <small ng-if="item.fromCoordinator">Chefia </small>
          <small>{{from.email.join()}}</small>
        </td>
        <td data-title="'Para'">
          <small ng-if="item.toSelf">Próprio </small>
          <small ng-if="item.toCoordinator">Chefia </small>
          <small>{{to.email.join()}}</small>
        </td>
        <td data-title="'CC'">
          <small ng-if="item.ccSelf">Próprio </small>
          <small ng-if="item.ccCoordinator">Chefia </small>
          <small>{{cc.email.join()}}</small>
        </td>
        <td data-title="'Anexo(s)'"><i ng-if="item.attachments ? item.attachments.length > 0 : false" class="fa fa-paperclip"></i></td>
        
        <td><button ng-click="openEdit(item)" type="button" class="btn btn-primary btn-xs"><span class="fa fa-pencil"></span> Editar</button></td>
      </tr>
    </table>
  </div>
</div>