summaryrefslogtreecommitdiff
path: root/web/src/pages/Jobs.jsx
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2018-08-28 08:51:39 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2018-10-11 02:58:06 +0000
commit6cb6b736150f0f65a29733e3055fa098953f901c (patch)
treecb4025fe778e90f190cc2c20f59895df16c5fcf0 /web/src/pages/Jobs.jsx
parent99c38c93751bd2c0f1f6237268df117f28af5ac2 (diff)
downloadzuul-6cb6b736150f0f65a29733e3055fa098953f901c.tar.gz
web: add job page
This change adds a /job/{job_name} web interface. Change-Id: Idbeae3a11ec4180a193923def7dc7f9c53dc9043
Diffstat (limited to 'web/src/pages/Jobs.jsx')
-rw-r--r--web/src/pages/Jobs.jsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/src/pages/Jobs.jsx b/web/src/pages/Jobs.jsx
index 8ec0e3d72..d4ef1553f 100644
--- a/web/src/pages/Jobs.jsx
+++ b/web/src/pages/Jobs.jsx
@@ -58,6 +58,12 @@ class JobsPage extends React.Component {
const headerFormat = value => <Table.Heading>{value}</Table.Heading>
const cellFormat = (value) => (
<Table.Cell>{value}</Table.Cell>)
+ const cellJobFormat = (value) => (
+ <Table.Cell>
+ <Link to={this.props.tenant.linkPrefix + '/job/' + value}>
+ {value}
+ </Link>
+ </Table.Cell>)
const cellBuildFormat = (value) => (
<Table.Cell>
<Link to={this.props.tenant.linkPrefix + '/builds?job_name=' + value}>
@@ -69,6 +75,9 @@ class JobsPage extends React.Component {
myColumns.forEach(column => {
let formatter = cellFormat
let prop = column
+ if (column === 'name') {
+ formatter = cellJobFormat
+ }
if (column === 'Last builds') {
prop = 'name'
formatter = cellBuildFormat