<div ng-repeat="comment in item.comments">
  {{comment.text}} [{{comment.user.username}}, {{comment.date |
  formatTimestamp}}]

  <div ng-repeat="attach in comment.attachments">
    <div>
      <a
        href="{{ attach.path }}"
        ng-if="!(attach.name.endsWith('lexisnexislist') || attach.name.endsWith('googlesearchlist') || attach.name.endsWith('mediasearchlist'))"
      >
        {{attach.name}}
      </a>

      <button
        class="btn btn-default btn-xs"
        ng-click="vm.loadLexisNexisTableFromFile(attach.path, item)"
        ng-if="attach.name.endsWith('lexisnexislist')"
      >
        {{ 'LIST' | translate }}
      </button>

      <button
        class="btn btn-default btn-xs"
        ng-click="vm.loadMediaSearchTableFromFile(attach.path, item)"
        ng-if="attach.name.endsWith('googlesearchlist') || attach.name.endsWith('mediasearchlist')"
      >
        {{ 'LIST' | translate }}
      </button>
    </div>
  </div>
</div>
