Merge "Add link to builds in job page"

This commit is contained in:
Zuul 2019-04-03 15:22:07 +00:00 committed by Gerrit Code Review
commit 4af8c52a2e
1 changed files with 8 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class JobVariant extends React.Component {
const rows = []
const jobInfos = [
'description', 'context', 'status',
'description', 'context', 'builds', 'status',
'parent', 'attempts', 'timeout', 'semaphore', 'implied_branch',
'nodeset', 'variables',
]
@ -98,6 +98,13 @@ class JobVariant extends React.Component {
showBranch={true}/>
)
}
if (label === 'builds') {
value = (
<Link to={this.props.tenant.linkPrefix + '/builds?job_name=' + variant.name}>
build history
</Link>
)
}
if (label === 'status') {
value = this.renderStatus(variant)
}