ent.typeFilter = 'document'">
                            Documents <span ng-if="document.docs.length" class="badge">{{document.docs | fileType:'document'}}</span>
                        </li>
                        <li class="item" ng-class="{'active': document.typeFilter == 'media'}" ng-click="document.typeFilter = 'media'">
                            Media <span ng-if="document.docs.length" class="badge">{{document.docs | fileType:'media'}}</span>
                        </li>
                        