|
@@ -1,33 +1,34 @@
|
|
<div ng-include="'/front/views/resultSubHeader.html'"></div>
|
|
<div ng-include="'/front/views/resultSubHeader.html'"></div>
|
|
<div class="rule board">
|
|
<div class="rule board">
|
|
- <div ng-if="rule">
|
|
|
|
- <h2>Score for rule:<br><span>{{rule.policy.label}}</span></h2>
|
|
|
|
-
|
|
|
|
- <div class="scoreDisplay">
|
|
|
|
|
|
+ <div class="backToDashboard"><a href="#" ng-click="backToDashboard()">Back to dashboard</a></div>
|
|
|
|
+
|
|
|
|
+ <div ng-if="rule" class="ruleTable">
|
|
|
|
+ <div class="left">
|
|
|
|
+ <h2>{{rule.policy.label}}</h2>
|
|
<grade score="rule.score" class="score"></grade>
|
|
<grade score="rule.score" class="score"></grade>
|
|
<div>{{rule.score}}/100</div>
|
|
<div>{{rule.score}}/100</div>
|
|
</div>
|
|
</div>
|
|
- <div ng-if="rule.abnormal">
|
|
|
|
- <h3>The page has a real problem with this rule</h3>
|
|
|
|
- <span class="icon-warning"></span>
|
|
|
|
- <span ng-if="rule.abnormalityScore <= -100" class="icon-warning"></span>
|
|
|
|
- <span ng-if="rule.abnormalityScore <= -300" class="icon-warning"></span>
|
|
|
|
- <p>(Abnormality score: {{rule.abnormalityScore}})</p>
|
|
|
|
|
|
+ <div class="right">
|
|
|
|
+ <h3>Value: {{rule.value}}</h3>
|
|
|
|
+ <div ng-bind-html="message" class="message"></div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <h3>Value</h3>
|
|
|
|
- {{rule.value}}
|
|
|
|
-
|
|
|
|
- <h3>Why this rule?</h3>
|
|
|
|
- <div ng-bind-html="message" class="message"></div>
|
|
|
|
-
|
|
|
|
- <div class="offenders" ng-if="rule.offenders.length > 0">
|
|
|
|
- <h3>List of offenders</h3>
|
|
|
|
- <ul>
|
|
|
|
- <li ng-repeat="offender in rule.offenders track by $index">
|
|
|
|
- {{offender}}
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <div ng-if="rule.abnormal" class="warning">
|
|
|
|
+ <h3>Warning</h3>
|
|
|
|
+ <p>This rule reached the abnormality threshold, which means there is a real problem you should care about.</p>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="offenders">
|
|
|
|
+ <h3>
|
|
|
|
+ <ng-pluralize count="rule.offenders.length || 0"
|
|
|
|
+ when="{'0': 'No offenders',
|
|
|
|
+ 'one': '1 offender',
|
|
|
|
+ 'other': '{} offenders'}">
|
|
|
|
+ </ng-pluralize>
|
|
|
|
+ </h3>
|
|
|
|
+ <div class="offendersTable">
|
|
|
|
+ <div ng-repeat="offender in rule.offenders track by $index">
|
|
|
|
+ <div>{{offender}}</div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div ng-if="!rule && rule !== null" class="notFound">
|
|
<div ng-if="!rule && rule !== null" class="notFound">
|