<form action="#" name="fm-mediaserver-list" method="post" accept-charset="utf-8">
  <table class="table table-condensed table-striped table-hover table-bordered">
    <tbody>
      <tr>
        <th ng-repeat="header in headers" ng-show="header !== 'id'">{{header | translate}}</th>
        <th ng-if="actions.length > 0">Action</th>
      </tr>

      <tr ng-repeat="elem in list">
        <td ng-repeat="header in headers" ng-show="header !== 'id'">
          <span ng-if="header == 'display_name' && elem['main']" tooltip-placement="right" uib-tooltip="MDS Main" class="icons-list glyphicon glyphicon-flag"></span>
            {{elem[header]}}
        </td>
        <td ng-if="actions.length > 0">
          <span ng-repeat="action in actions" ng-switch="action" title="{{action | translate}}">
            <a ng-if="!elem['main']" ng-switch-when="edit" ng-href="{{path}}?act=edit&id={{elem.id}}">
              <img ng-src="/img/site/button/{{action}}.png" alt="{{action | translate}}"/>
            </a>
            <a ng-if="!elem['main']" ng-switch-when="delete" ng-click="delete({id: elem.id})" ng-confirm-click="{{'confirm_delete_mediaserver' | translate}}" href="">
              <img ng-src="/img/site/button/{{action}}.png" alt="{{action | translate}}"/>
            </a>
          </span>
        </td>
      </tr>
    </tbody>
  </table>
</form>