|
1 | 1 | <style type="text/css"> |
2 | | - div.sonar-content { |
3 | | - text-align: right; |
4 | | - color: white; |
5 | | - } |
6 | | - |
7 | | - .statusQualitygate { |
8 | | - border-radius: 8px; |
9 | | - margin-bottom: 2%; |
10 | | - } |
11 | | - |
12 | | - .codeCoverage { |
13 | | - border-radius: 8px; |
14 | | - background-color: #fcc700; |
15 | | - margin-bottom: 2%; |
16 | | - } |
17 | | - |
18 | | - .blockerIssues { |
19 | | - border-radius: 8px; |
20 | | - background-color: #1B7DAA; |
21 | | - } |
22 | | - |
23 | | - .glyphiconStyle { |
24 | | - float: left; |
25 | | - font-size: 3em; |
26 | | - margin-top: 25px; |
27 | | - } |
28 | | - |
29 | | - .error { |
30 | | - background-color: #E43B53; |
31 | | - } |
32 | | - |
33 | | - .warning { |
34 | | - background-color: #DD7800; |
35 | | - } |
36 | | - |
37 | | - .ok { |
38 | | - background-color: #B5CA00; |
39 | | - } |
40 | | - |
41 | | - .unknown { |
42 | | - background-color: #777777; |
43 | | - } |
| 2 | + |
| 3 | + div.sonar-content, div.sonar-content h1, div.sonar-content h4 { |
| 4 | + text-align: right; |
| 5 | + color: white; |
| 6 | + } |
| 7 | + |
| 8 | + .statusQualitygate { |
| 9 | + border-radius: 8px; |
| 10 | + margin-bottom: 2%; |
| 11 | + } |
| 12 | + |
| 13 | + .codeCoverage { |
| 14 | + border-radius: 8px; |
| 15 | + background-color: #fcc700; |
| 16 | + margin-bottom: 2%; |
| 17 | + } |
| 18 | + |
| 19 | + .blockerIssues { |
| 20 | + border-radius: 8px; |
| 21 | + background-color: #1B7DAA; |
| 22 | + } |
| 23 | + |
| 24 | + .glyphiconStyle { |
| 25 | + float: left; |
| 26 | + font-size: 3em; |
| 27 | + margin-top: 25px; |
| 28 | + } |
| 29 | + |
| 30 | + .error { |
| 31 | + background-color: #E43B53; |
| 32 | + } |
| 33 | + |
| 34 | + .warning { |
| 35 | + background-color: #DD7800; |
| 36 | + } |
| 37 | + |
| 38 | + .ok { |
| 39 | + background-color: #B5CA00; |
| 40 | + } |
| 41 | + |
| 42 | + .unknown { |
| 43 | + background-color: #777777; |
| 44 | + } |
44 | 45 | </style> |
45 | 46 |
|
46 | 47 |
|
47 | 48 | <div class="alert alert-info" ng-if="!vm.name"> |
48 | | - Please configure the widget |
| 49 | + Please configure the widget |
49 | 50 | </div> |
50 | 51 |
|
51 | 52 | <div class="sonar-content col-md-12" ng-if="vm.name"> |
52 | 53 |
|
53 | | - <div ng-switch on="vm.qualityGateStatus"> |
54 | | - <div ng-switch-when="OK"> |
55 | | - <div class="ok col-md-12 statusQualitygate"> |
56 | | - <span class="glyphicon glyphicon-ok glyphiconStyle"></span> |
57 | | - <h1>Passed</h1> |
58 | | - <h4>Quality Gate</h4> |
59 | | - </div> |
60 | | - </div> |
61 | | - <div ng-switch-when="ERROR"> |
62 | | - <div class="error col-md-12 statusQualitygate"> |
63 | | - <span class="glyphicon glyphicon-remove glyphiconStyle"></span> |
64 | | - <h1>Error</h1> |
65 | | - <h4>Quality Gate</h4> |
66 | | - </div> |
67 | | - </div> |
68 | | - <div ng-switch-when="WARNING"> |
69 | | - <div class="warning col-md-12 statusQualitygate"> |
70 | | - <span class="glyphicon glyphicon-info-sign glyphiconStyle"></span> |
71 | | - <h1>Warning</h1> |
72 | | - <h4>Quality Gate</h4> |
73 | | - </div> |
74 | | - </div> |
75 | | - |
76 | | - <div ng-switch-default> |
77 | | - <div class="unknown col-md-12 statusQualitygate"> |
78 | | - <span class="glyphicon glyphicon-question-sign glyphiconStyle"></span> |
79 | | - <h1>unknown</h1> |
80 | | - <h4>Quality Gate</h4> |
81 | | - </div> |
82 | | - </div> |
| 54 | + <div ng-switch on="vm.qualityGateStatus"> |
| 55 | + <div ng-switch-when="OK"> |
| 56 | + <div class="ok col-md-12 statusQualitygate"> |
| 57 | + <span class="glyphicon glyphicon-ok glyphiconStyle"></span> |
| 58 | + <h1>Passed</h1> |
| 59 | + <h4>Quality Gate</h4> |
| 60 | + </div> |
83 | 61 | </div> |
84 | | - |
85 | | - <div class="col-md-12 codeCoverage"> |
86 | | - <span class="glyphicon glyphicon-tasks glyphiconStyle"></span> |
87 | | - <h1>{{vm.coverage||"unknown"}}</h1> |
88 | | - <h4>Code Coverage</h4> |
| 62 | + <div ng-switch-when="ERROR"> |
| 63 | + <div class="error col-md-12 statusQualitygate"> |
| 64 | + <span class="glyphicon glyphicon-remove glyphiconStyle"></span> |
| 65 | + <h1>Error</h1> |
| 66 | + <h4>Quality Gate</h4> |
| 67 | + </div> |
89 | 68 | </div> |
90 | | - <div class="col-md-12 blockerIssues"> |
91 | | - <span class="glyphicon glyphicon-exclamation-sign glyphiconStyle"></span> |
92 | | - <h1>{{vm.blocker||"unknown"}}</h1> |
93 | | - <h4>Blocker Issues</h4> |
| 69 | + <div ng-switch-when="WARNING"> |
| 70 | + <div class="warning col-md-12 statusQualitygate"> |
| 71 | + <span class="glyphicon glyphicon-info-sign glyphiconStyle"></span> |
| 72 | + <h1>Warning</h1> |
| 73 | + <h4>Quality Gate</h4> |
| 74 | + </div> |
| 75 | + </div> |
| 76 | + |
| 77 | + <div ng-switch-default> |
| 78 | + <div class="unknown col-md-12 statusQualitygate"> |
| 79 | + <span class="glyphicon glyphicon-question-sign glyphiconStyle"></span> |
| 80 | + <h1>unknown</h1> |
| 81 | + <h4>Quality Gate</h4> |
| 82 | + </div> |
94 | 83 | </div> |
| 84 | + </div> |
| 85 | + |
| 86 | + <div class="col-md-12 codeCoverage"> |
| 87 | + <span class="glyphicon glyphicon-tasks glyphiconStyle"></span> |
| 88 | + <h1>{{vm.coverage||"unknown"}}</h1> |
| 89 | + <h4>Code Coverage</h4> |
| 90 | + </div> |
| 91 | + <div class="col-md-12 blockerIssues"> |
| 92 | + <span class="glyphicon glyphicon-exclamation-sign glyphiconStyle"></span> |
| 93 | + <h1>{{vm.blocker||"unknown"}}</h1> |
| 94 | + <h4>Blocker Issues</h4> |
| 95 | + </div> |
95 | 96 |
|
96 | 97 | </div> |
97 | 98 |
|
0 commit comments