return (
<div className="overview-meta">
- <div className="overview-meta-card">
- {hasDescription && (
- <div className="overview-meta-description big-spacer-bottom">
- {description}
- </div>
- )}
-
- <MetaLinks component={component}/>
- </div>
+ {hasDescription && (
+ <div className="overview-meta-card overview-meta-description">
+ {description}
+ </div>
+ )}
<MetaSize component={component} measures={measures}/>
<MetaQualityProfiles profiles={profiles}/>
)}
+ <MetaLinks component={component}/>
+
<MetaKey component={component}/>
{showShowEvents && (
const orderedLinks = orderLinks(links);
return (
- <ul className="overview-meta-list">
- {orderedLinks.map(link => (
- <li key={link.id}>
- <a className="link-with-icon" href={link.url} target="_blank">
- {this.renderLinkIcon(link)}
-
- {link.name}
- </a>
- </li>
- ))}
- </ul>
+ <div className="overview-meta-card">
+ <ul className="overview-meta-list">
+ {orderedLinks.map(link => (
+ <li key={link.id}>
+ <a className="link-with-icon" href={link.url} target="_blank">
+ {this.renderLinkIcon(link)}
+
+ {link.name}
+ </a>
+ </li>
+ ))}
+ </ul>
+ </div>
);
}
}
import React from 'react';
import { DrilldownLink } from '../../../components/shared/drilldown-link';
import LanguageDistribution from '../../../components/charts/LanguageDistribution';
-import { translate } from '../../../helpers/l10n';
import { formatMeasure } from '../../../helpers/measures';
+import { getMetricName } from '../helpers/metrics';
export default class MetaSize extends React.Component {
static propTypes = {
return (
<div id="overview-size" className="overview-meta-card">
- <h4 className="overview-meta-header">
- {translate('overview.domain.size')}
- </h4>
-
- <div>
- <div id="overview-ncloc" className="overview-meta-size-ncloc">
- <DrilldownLink
- className="overview-domain-secondary-measure-value"
- component={this.props.component.key}
- metric="ncloc">
- {formatMeasure(ncloc.value, 'SHORT_INT')}
- </DrilldownLink>
- </div>
- <div id="overview-language-distribution"
- className="overview-meta-size-lang-dist">
- <LanguageDistribution distribution={languageDistribution.value}/>
- </div>
+ <div id="overview-ncloc" className="overview-meta-size-ncloc">
+ <DrilldownLink component={this.props.component.key} metric="ncloc">
+ {formatMeasure(ncloc.value, 'SHORT_INT')}
+ </DrilldownLink>
+ <div className="overview-domain-measure-label text-muted">{getMetricName('ncloc')}</div>
+ </div>
+ <div id="overview-language-distribution"
+ className="overview-meta-size-lang-dist">
+ <LanguageDistribution distribution={languageDistribution.value}/>
</div>
</div>
);