aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-07-29 10:16:11 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-07-29 10:16:11 +0200
commitd107bfeb735e2d75bece233900a546b347774c2b (patch)
tree7408abd163240a90b7e8e5c71cb3f555f6cb5c8f /server/sonar-web
parent30b1e36d9b882350e1c3e35cde4d20a0b69e9c7f (diff)
downloadsonarqube-d107bfeb735e2d75bece233900a546b347774c2b.tar.gz
sonarqube-d107bfeb735e2d75bece233900a546b347774c2b.zip
improve code quality
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/events/EventsList.js2
-rw-r--r--server/sonar-web/src/main/js/apps/overview/meta/MetaQualityProfiles.js29
2 files changed, 2 insertions, 29 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/events/EventsList.js b/server/sonar-web/src/main/js/apps/overview/events/EventsList.js
index 40ae9b25573..3b35a24d690 100644
--- a/server/sonar-web/src/main/js/apps/overview/events/EventsList.js
+++ b/server/sonar-web/src/main/js/apps/overview/events/EventsList.js
@@ -142,7 +142,7 @@ export default class EventsList extends React.Component {
{this.renderList(events)}
- {filteredEvents.length > LIMIT && this.renderMoreLink(filteredEvents)}
+ {filteredEvents.length > LIMIT && this.renderMoreLink()}
</div>
);
}
diff --git a/server/sonar-web/src/main/js/apps/overview/meta/MetaQualityProfiles.js b/server/sonar-web/src/main/js/apps/overview/meta/MetaQualityProfiles.js
index 168d79c663a..ff4ca02fcf5 100644
--- a/server/sonar-web/src/main/js/apps/overview/meta/MetaQualityProfiles.js
+++ b/server/sonar-web/src/main/js/apps/overview/meta/MetaQualityProfiles.js
@@ -20,7 +20,7 @@
import React from 'react';
import { TooltipsContainer } from '../../../components/mixins/tooltips-mixin';
import { translate, translateWithParameters } from '../../../helpers/l10n';
-import { getQualityProfileUrl, getRulesUrl } from '../../../helpers/urls';
+import { getQualityProfileUrl } from '../../../helpers/urls';
import { searchRules } from '../../../api/rules';
export default class MetaQualityProfiles extends React.Component {
@@ -68,26 +68,6 @@ export default class MetaQualityProfiles extends React.Component {
return count || 0;
}
- renderDeprecated (profile) {
- const count = this.state.deprecatedByKey[profile.key];
- if (!count) {
- return null;
- }
-
- const url = getRulesUrl({
- qprofile: profile.key,
- activation: 'true',
- statuses: 'DEPRECATED'
- });
-
- return (
- <a className="icon-alert-warn spacer-right"
- href={url}
- title={translateWithParameters('overview.deprecated_profile', count)}
- data-toggle="tooltip"/>
- );
- }
-
renderProfile (profile) {
const inner = (
<div className="text-ellipsis">
@@ -125,13 +105,6 @@ export default class MetaQualityProfiles extends React.Component {
render () {
const { profiles } = this.props;
- const deprecatedStyles = {
- padding: '3px 6px',
- border: '1px solid #ebccd1',
- borderRadius: '3px',
- backgroundColor: '#f2dede'
- };
-
return (
<TooltipsContainer>
<div>