return (
<>
- <h3>{localizeMetric(MetricKey.ncloc)}</h3>
+ <div className="display-flex-row display-inline-flex-baseline">
+ <h3>{localizeMetric(MetricKey.ncloc)}</h3>
+ <span className="spacer-left small">({translate('project.info.main_branch')})</span>
+ </div>
<div className="display-flex-center">
{ncloc ? (
<>
exports[`should render correctly: application 1`] = `
<Fragment>
- <h3>
- metric.ncloc.name
- </h3>
+ <div
+ className="display-flex-row display-inline-flex-baseline"
+ >
+ <h3>
+ metric.ncloc.name
+ </h3>
+ <span
+ className="spacer-left small"
+ >
+ (
+ project.info.main_branch
+ )
+ </span>
+ </div>
<div
className="display-flex-center"
>
exports[`should render correctly: project 1`] = `
<Fragment>
- <h3>
- metric.ncloc.name
- </h3>
+ <div
+ className="display-flex-row display-inline-flex-baseline"
+ >
+ <h3>
+ metric.ncloc.name
+ </h3>
+ <span
+ className="spacer-left small"
+ >
+ (
+ project.info.main_branch
+ )
+ </span>
+ </div>
<div
className="display-flex-center"
>
project.info.quality_gate=Quality Gate used
project.info.to_notifications=Set notifications
project.info.notifications=Set notifications
+project.info.main_branch=Main branch
#------------------------------------------------------------------------------
#