<!--
 ! NOTE: Please do not edit this file directly
 ! Create your custom reports in the 'ext' folder
 !-->
<script type="text/ng-template" id="render-table-cell-content.html">
  <span ng-switch on="report.header[$index].kind">
    <sprite ng-switch-when="qualification" img="{{cell && 'qualification_success' || 'qualification_failed'}}" sprite-class="icon-qualification" class="test-specification-result"></sprite>
    <span ng-switch-when="date" ng-bind="cell | date:'yyyy-MM-dd HH:mm:ss'"></span>
    <span ng-switch-when="duration" ng-bind="cell | duration"></span>
    <span ng-switch-default ng-bind="cell"></span>
  </span>
</script>

<p class="instruction" ng-show="report.description" ng-bind="report.description"></p>
<table class="table">
  <thead ng-if="report.header">
    <tr>
      <th ng-repeat="cell in report.header" ng-bind="cell.name"></th>
    </tr>
  </thead>
  <tbody ng-if="report.body">
    <tr ng-repeat="row in report.body">
      <td ng-repeat="field in row track by $index" >
        <a ng-if="field.ref" href="{{field.ref}}" ng-init="cell = field.v" ng-include="'render-table-cell-content.html'">
        </a>
        <ng-include ng-if="!field.ref" ng-init="cell = field" src="'render-table-cell-content.html'">
        </ng-include>
      </td>
    </tr>
  </tbody>
</table>