aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-10-18 09:46:22 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-10-21 10:24:17 +0200
commitb7129679327efeeb44f9205656b46376adfe9689 (patch)
treef01159db52a79aae8e478dcafe79a7d9d22156c6 /server/sonar-web/src/main/js/apps/overview
parent3d8cdcbf8558e40385f481272045056d5435a3e6 (diff)
downloadsonarqube-b7129679327efeeb44f9205656b46376adfe9689.tar.gz
sonarqube-b7129679327efeeb44f9205656b46376adfe9689.zip
SONAR-8300 Create new "Projects" page [first iter]
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/main/enhance.js2
-rw-r--r--server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGate.js5
-rw-r--r--server/sonar-web/src/main/js/apps/overview/styles.css7
3 files changed, 4 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/main/enhance.js b/server/sonar-web/src/main/js/apps/overview/main/enhance.js
index 00a6df79e93..1b0b294d046 100644
--- a/server/sonar-web/src/main/js/apps/overview/main/enhance.js
+++ b/server/sonar-web/src/main/js/apps/overview/main/enhance.js
@@ -146,7 +146,7 @@ export default function enhance (ComposedComponent) {
<div className="overview-domain-measure-sup"
title={title}
data-toggle="tooltip">
- <DrilldownLink component={component.key} metric={metricKey}>
+ <DrilldownLink className="link-no-underline" component={component.key} metric={metricKey}>
<Rating value={measure.value}/>
</DrilldownLink>
</div>
diff --git a/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGate.js b/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGate.js
index 6217905ae83..219a58d0895 100644
--- a/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGate.js
+++ b/server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGate.js
@@ -23,6 +23,7 @@ import QualityGateConditions from './QualityGateConditions';
import EmptyQualityGate from './EmptyQualityGate';
import { ComponentType, MeasuresListType, PeriodsListType } from '../propTypes';
import { translate } from '../../../helpers/l10n';
+import Level from '../../../components/ui/Level';
function parseQualityGateDetails (rawDetails) {
return JSON.parse(rawDetails);
@@ -53,9 +54,7 @@ const QualityGate = ({ component, measures, periods }) => {
<div className="overview-quality-gate" id="overview-quality-gate">
<h2 className="overview-title">
{translate('overview.quality_gate')}
- <span className={'badge badge-' + level.toLowerCase()}>
- {translate('overview.gate', level)}
- </span>
+ <Level level={level}/>
</h2>
{conditions.length > 0 && (
diff --git a/server/sonar-web/src/main/js/apps/overview/styles.css b/server/sonar-web/src/main/js/apps/overview/styles.css
index 38381fac6d5..5dc04da6d71 100644
--- a/server/sonar-web/src/main/js/apps/overview/styles.css
+++ b/server/sonar-web/src/main/js/apps/overview/styles.css
@@ -16,13 +16,8 @@
font-weight: 400;
}
-.overview-title > .badge {
- position: relative;
- top: -2px;
+.overview-title > .level {
margin-left: 15px;
- padding: 6px 12px;
- font-size: 14px;
- letter-spacing: 0.05em;
}
.overview-title > a {