]> source.dussan.org Git - sonarqube.git/commitdiff
display key for provisioned projects
authorStas Vilchik <vilchiks@gmail.com>
Wed, 3 Feb 2016 10:24:19 +0000 (11:24 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 3 Feb 2016 10:40:59 +0000 (11:40 +0100)
server/sonar-web/src/main/js/apps/overview/app.js
server/sonar-web/src/main/js/apps/overview/overview.js
server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/empty.html.erb
server/sonar-web/src/main/webapp/WEB-INF/app/views/project/history.html.erb

index aeef5697364fba0aec1f0b068dec0fa858cd66b5..0625efd5dc931e1de98880df679d99cda5dcb87c 100644 (file)
@@ -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);
     }
   }
 }
index 2188acf0edafc0f9823c126545a421ca905eaf34..ad358b4ed11e4c68d6bde58bafe69ecbac99fafd 100644 (file)
@@ -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>
     );
   }
index 0ba745395cf54c1d3e717bceb3bc66cfc8015050..f65e6d90e0488d8098c39db18fb6f6aeba61a168 100644 (file)
@@ -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>
-
index 6ee6243122b1bb155157886ea8f1203b0447fde0..3defad732c243597dbc3ace3483c272449fbce30 100644 (file)
@@ -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? %>