if (opts.component.hasSnapshot) {
ReactDOM.render(<Overview {...opts} leakPeriodIndex={LEAK_PERIOD}/>, el);
} else {
- ReactDOM.render(<EmptyOverview/>, el);
+ ReactDOM.render(<EmptyOverview {...opts}/>, el);
}
}
}
<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>
);
}
<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>
-
<% 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? %>