summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorSorin Sbarnea <ssbarnea@redhat.com>2020-01-30 15:53:44 +0000
committerSorin Sbarnea <ssbarnea@redhat.com>2020-02-01 18:03:35 +0000
commit7b81e5e3a5096bb6bfdd0c9c5b78796ad398d4f8 (patch)
tree03fac0fd2865ab6c711fac031de0b40dd7a7c42a /web
parent9415c9b403256352ae984adff6856e78b1fe4066 (diff)
downloadzuul-7b81e5e3a5096bb6bfdd0c9c5b78796ad398d4f8.tar.gz
Add build history link to summary
This change should add a link to the build history of that particular job inside the same project, giving more insights to the visitor about previous runs in the same context. Change-Id: Ia1903efb0702749192af8ed9c6caafb44a8c63e7
Diffstat (limited to 'web')
-rw-r--r--web/src/containers/build/Summary.jsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/src/containers/build/Summary.jsx b/web/src/containers/build/Summary.jsx
index 90eea6af7..e3003d0dc 100644
--- a/web/src/containers/build/Summary.jsx
+++ b/web/src/containers/build/Summary.jsx
@@ -47,9 +47,15 @@ class Summary extends React.Component {
if (column === 'job_name') {
label = 'job'
value = (
+ <React.Fragment>
<Link to={this.props.tenant.linkPrefix + '/job/' + value}>
{value}
</Link>
+ <span> &mdash; </span>
+ <Link to={this.props.tenant.linkPrefix + '/builds?job_name=' + value + '&project=' + build.project} title="See previous runs of this job inside current project.">
+ build history
+ </Link>
+ </React.Fragment>
)
}
if (column === 'buildset') {