<!-- Faraday Penetration Test IDE -->
<!-- Copyright (C) 2013  Infobyte LLC (http://www.infobytesec.com/) -->
<!-- See the file 'doc/LICENSE' for the license information -->

<div id='summarized' ng-controller="summarizedCtrl">
    <div>
        <article class='panel m0'>
            <header>
                <h2>Workspace summarized report
                    <span class="glyphicon glyphicon-info-sign" uib-tooltip="WS overview - hosts, services and vulnerabilites counts"></span>
                </h2>
            </header>
            <div ng-if="objectsCount.length === 0" class="no-info-overlay">
                <p class="no-info-text">Not enough data to generate summarized report yet.</p>
            </div>
            <div class='main' ng-class="{'height-auto': objectsCount.length === 0}">
                <div class='box'>
                    <div ng-repeat="obj in objectsCount" class="columna unquinto">
                        <article class="dato2">
                                <div ng-switch on="obj.key">
                                    <div class="nro" ng-switch-when="total vulns"><a href="#/status/ws/{{workspace}}">{{obj.value}}</a></div>
                                    <div class="nro" ng-switch-when="hosts"><a href="#/hosts/ws/{{workspace}}">{{obj.value}}</a></div>
                                    <div class="nro" ng-switch-when="web vulns"><a href="#/status/ws/{{workspace}}/search/type=VulnerabilityWeb">{{obj.value}}</a></div>
                                    <div class="nro" ng-switch-when="vulns"><a href="#/status/ws/{{workspace}}/search/type=Vulnerability">{{obj.value}}</a></div>
                                    <div class="nro" ng-switch-when="credentials"><a href="#/credentials/ws/{{workspace}}">{{obj.value}}</a></div>
                                    <!--#/status/ws/cscan/search/severity=high -->
                                    <div class="nro" ng-switch-default>{{obj.value}}</div>
                                </div>
                                <div class="txt texto-blanco">{{obj.key}}</div>
                            </section>
                        </article>
                    </div>
                </div>
            </div>
        </article>
    </div>
</div>
