Skip to content

Commit

Permalink
Fix pipeline page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
SemaiCZE committed Nov 3, 2017
1 parent 4d55392 commit 4b61cee
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions src/pages/Pipeline/Pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,32 +103,30 @@ class Pipeline extends Component {
>
{pipeline =>
<div>
<div>
<ButtonGroup>
{isAuthorOfPipeline(pipeline.id) &&
<LinkContainer to={PIPELINE_EDIT_URI_FACTORY(pipeline.id)}>
<Button bsStyle="warning" bsSize="sm">
<EditIcon />
&nbsp;
<FormattedMessage
id="app.pipeline.editSettings"
defaultMessage="Edit pipeline"
/>
</Button>
</LinkContainer>}
<ForkPipelineForm
pipelineId={pipeline.id}
exercises={exercises}
forkId={forkId}
onSubmit={formData => forkPipeline(forkId, formData)}
/>
</ButtonGroup>
</div>
<p />
<Row>
<Col lg={6}>
<div>
<ButtonGroup>
{isAuthorOfPipeline(pipeline.id) &&
<LinkContainer
to={PIPELINE_EDIT_URI_FACTORY(pipeline.id)}
>
<Button bsStyle="warning" bsSize="sm">
<EditIcon />
&nbsp;
<FormattedMessage
id="app.pipeline.editSettings"
defaultMessage="Edit pipeline"
/>
</Button>
</LinkContainer>}
<ForkPipelineForm
pipelineId={pipeline.id}
exercises={exercises}
forkId={forkId}
onSubmit={formData => forkPipeline(forkId, formData)}
/>
</ButtonGroup>
</div>
<p />
<PipelineDetail {...pipeline} />
</Col>
<Col lg={6}>
Expand Down

0 comments on commit 4b61cee

Please sign in to comment.