<div id="examineManagement" ng-controller="Umbraco.Dashboard.XmlDataIntegrityReportController">

    <h3>Xml Cache Data integrity</h3>

    <div ng-show="loading">
        Loading...
    </div>

    <p>
        This checks the data integrity for the xml structures for content, media and members that are stored in the cmsContentXml table.
        This does not check the data integrity of the xml cache file, only the xml structures stored in the database used to create the xml cache file.
    </p>
    <div ng-repeat="(key, value) in items" class="umb-pane">
        <span class="">{{value.label}}&nbsp;...</span>
        <span ng-if="value.checking" class="text-info">Checking...</span>
        <span ng-if="!value.checking && !value.invalid" class="text-success"><strong>Ok</strong></span>
        <span ng-if="!value.checking && value.invalid" class="text-error"><strong>Error</strong></span>
        <div ng-show="value.fix && !value.fixing">
            <button type="button" ng-click="fix(value)" class="btn btn-warning">
                <span ng-if="value.invalid">Fix</span>
                <span ng-if="!value.invalid">Rebuild</span>
            </button>
        </div>
        <div class="umb-loader-wrapper" ng-show="value.fixing">
            <div class="umb-loader"></div>
        </div>
    </div>



</div>