Skip to content

Commit e823301

Browse files
author
Christoph Wolfes
committed
updated color schema
1 parent 7da6def commit e823301

File tree

2 files changed

+86
-83
lines changed

2 files changed

+86
-83
lines changed

src/allProjects/view.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<style type="text/css">
2-
div.sonar-content {
2+
3+
div.sonar-content, div.sonar-content h1, div.sonar-content h4 {
34
text-align: right;
45
color: white;
56
}
7+
68
.coverage {
79
background-color: #fcc700;
810
border-radius: 8px;

src/projectquality/view.html

Lines changed: 83 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,98 @@
11
<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+
}
4445
</style>
4546

4647

4748
<div class="alert alert-info" ng-if="!vm.name">
48-
Please configure the widget
49+
Please configure the widget
4950
</div>
5051

5152
<div class="sonar-content col-md-12" ng-if="vm.name">
5253

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>
8361
</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>
8968
</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>
9483
</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>
9596

9697
</div>
9798

0 commit comments

Comments
 (0)