From e9d013dabf4d0e1491d5bcbeb5cfebf83d74efe8 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 3 Feb 2016 11:24:19 +0100 Subject: [PATCH] display key for provisioned projects --- server/sonar-web/src/main/js/apps/overview/app.js | 2 +- server/sonar-web/src/main/js/apps/overview/overview.js | 4 ++++ .../webapp/WEB-INF/app/views/dashboard/empty.html.erb | 9 +++++++-- .../webapp/WEB-INF/app/views/project/history.html.erb | 9 ++++++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/overview/app.js b/server/sonar-web/src/main/js/apps/overview/app.js index aeef5697364..0625efd5dc9 100644 --- a/server/sonar-web/src/main/js/apps/overview/app.js +++ b/server/sonar-web/src/main/js/apps/overview/app.js @@ -40,7 +40,7 @@ class App { if (opts.component.hasSnapshot) { ReactDOM.render(, el); } else { - ReactDOM.render(, el); + ReactDOM.render(, el); } } } diff --git a/server/sonar-web/src/main/js/apps/overview/overview.js b/server/sonar-web/src/main/js/apps/overview/overview.js index 2188acf0eda..ad358b4ed11 100644 --- a/server/sonar-web/src/main/js/apps/overview/overview.js +++ b/server/sonar-web/src/main/js/apps/overview/overview.js @@ -116,6 +116,10 @@ export const EmptyOverview = React.createClass({
{translate('provisioning.no_analysis')}
+
+

{translate('key')}

+ {this.props.component.key} +
); } diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb index 0ba745395cf..f65e6d90e04 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb @@ -1,6 +1,11 @@
<% if @resource and !@snapshot %> -

<%= message('provisioning.no_analysis') -%>

+
+ <%= h message('provisioning.no_analysis') -%> +
+
+

<%= h message('key') -%>

+ <%= h @resource.key -%> +
<% end %>
- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb index 6ee6243122b..3defad732c2 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb @@ -6,7 +6,14 @@ <% if !@snapshot %> -

<%= message('provisioning.no_analysis') -%>

+
+ <%= h message('provisioning.no_analysis') -%> +
+ +
+

<%= h message('key') -%>

+ <%= h @project.key -%> +
<% elsif @snapshot.root? %> -- 2.39.5