diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-02-03 11:24:19 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-02-03 11:40:59 +0100 |
commit | e9d013dabf4d0e1491d5bcbeb5cfebf83d74efe8 (patch) | |
tree | 73d7bc252c5ff75d5517401c297f0c66bad64021 | |
parent | ca87a168cf6b6dd8d58454afbb6ee298db6003c1 (diff) | |
download | sonarqube-e9d013dabf4d0e1491d5bcbeb5cfebf83d74efe8.tar.gz sonarqube-e9d013dabf4d0e1491d5bcbeb5cfebf83d74efe8.zip |
display key for provisioned projects
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(<Overview {...opts} leakPeriodIndex={LEAK_PERIOD}/>, el); } else { - ReactDOM.render(<EmptyOverview/>, el); + ReactDOM.render(<EmptyOverview {...opts}/>, 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({ <div className="alert alert-warning"> {translate('provisioning.no_analysis')} </div> + <div className="big-spacer-top"> + <h4>{translate('key')}</h4> + <code>{this.props.component.key}</code> + </div> </div> ); } 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 @@ <div class="page"> <% if @resource and !@snapshot %> - <p class="alert alert-warning"><%= message('provisioning.no_analysis') -%></p> + <div class="alert alert-warning"> + <%= h message('provisioning.no_analysis') -%> + </div> + <div className="big-spacer-top"> + <h4><%= h message('key') -%></h4> + <code><%= h @resource.key -%></code> + </div> <% end %> </div> - 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 %> - <p class="alert alert-warning"><%= message('provisioning.no_analysis') -%></p> + <div class="alert alert-warning"> + <%= h message('provisioning.no_analysis') -%> + </div> + + <div className="big-spacer-top"> + <h4><%= h message('key') -%></h4> + <code><%= h @project.key -%></code> + </div> <% elsif @snapshot.root? %> |