type Props = {
history: ?History,
project: string,
+ qualifier: string,
router: { replace: ({ pathname: string, query?: {} }) => void }
};
return (
<ul className="spacer-top">
- {analyses.map(analysis => <Analysis key={analysis.key} analysis={analysis} />)}
+ {analyses.map(analysis =>
+ <Analysis key={analysis.key} analysis={analysis} qualifier={this.props.qualifier} />
+ )}
</ul>
);
}
import { translate } from '../../../helpers/l10n';
import type { Analysis as AnalysisType, Event as EventType } from '../../projectActivity/types';
-export default function Analysis(props: { analysis: AnalysisType }) {
+type Props = {
+ analysis: AnalysisType,
+ qualifier: string
+};
+
+export default function Analysis(props: Props) {
const { analysis } = props;
const sortedEvents: Array<EventType> = sortBy(
analysis.events,
{sortedEvents.map(event => <Event event={event} key={event.key} />)}
</div>
: <span className="note">
- {translate('project_activity.project_analyzed')}
+ {translate('project_activity.analyzed', props.qualifier)}
</span>}
</li>
);
{isProject && <MetaTags component={component} />}
{(isProject || isApplication) &&
- <AnalysesList project={component.key} history={history} router={router} />}
+ <AnalysesList
+ project={component.key}
+ qualifier={component.qualifier}
+ history={history}
+ router={router}
+ />}
{shouldShowQualityGate &&
<MetaQualityGate
project_activity.analysis=Analysis
project_activity.add_version=Create Version
-project_activity.project_analyzed=Project Analyzed
+project_activity.analyzed.TRK=Project Analyzed
+project_activity.analyzed.APP=Application Analyzed
project_activity.remove_version=Remove Version
project_activity.remove_version.question=Are you sure you want to delete this version?
project_activity.change_version=Change Version