aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-12-16 15:42:03 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-12-16 15:42:03 +0100
commit86be080a4b3a23d2ad0706b5a83f5b42e5d0ea7c (patch)
tree391b1df7c50d5b9c52d71830573654907d254560
parentf7c1c7a08a7fecdfb339493830ecd122bfd481ab (diff)
downloadsonarqube-86be080a4b3a23d2ad0706b5a83f5b42e5d0ea7c.tar.gz
sonarqube-86be080a4b3a23d2ad0706b5a83f5b42e5d0ea7c.zip
SONAR-7144 add a link to open a component in a new tab
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/ComponentDetach.js2
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties8
2 files changed, 10 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/components/ComponentDetach.js b/server/sonar-web/src/main/js/apps/code/components/ComponentDetach.js
index 5459c7a5a6b..c4ecf42b924 100644
--- a/server/sonar-web/src/main/js/apps/code/components/ComponentDetach.js
+++ b/server/sonar-web/src/main/js/apps/code/components/ComponentDetach.js
@@ -7,6 +7,8 @@ const ComponentDetach = ({ component }) => (
<a
className="icon-detach"
target="_blank"
+ title={window.t('code.open_in_new_tab')}
+ data-toggle="tooltip"
href={getComponentUrl(component.key)}/>
);
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index c907c833574..8f40801694f 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -3158,3 +3158,11 @@ overview.no_duplications=This component does not have details details.
#------------------------------------------------------------------------------
api_documentation.deprecation_tooltip=Deprecated services remain available through the first L.T.S. version released after deprecation, and will be removed before the second.
api_documentation.internal_tooltip=Use at your own risk; internal services are subject to change or removal without notice.
+
+
+#------------------------------------------------------------------------------
+#
+# CODE
+#
+#------------------------------------------------------------------------------
+code.open_in_new_tab=Open in New Tab