const { onAddCondition, onDeleteCondition, onSaveCondition } = this.props;
if (!qualityGate) {
- return (
- <div className="search-navigator-workspace">
- <div className="search-navigator-workspace-header" style={{ top: 30 }}>
- <h2 className="search-navigator-header-component"> </h2>
- </div>
- <div className="search-navigator-workspace-details" />
- </div>
- );
+ return null;
}
return (
- <div className="search-navigator-workspace">
+ <div className="layout-page-main">
<Helmet title={qualityGate.name} />
<DetailsHeader
qualityGate={qualityGate}
: translate('quality_gates.projects_for_default');
return (
- <div ref="container" className="search-navigator-workspace-details">
+ <div className="layout-page-main-inner">
<Conditions
qualityGate={gate}
conditions={conditions}
}
return (
- <div className="search-navigator-workspace-header" style={{ top: 30 }}>
- <h2 className="search-navigator-header-component">
- {qualityGate.name}
- </h2>
- {edit &&
- <div className="search-navigator-header-actions">
- <div className="button-group">
- <button id="quality-gate-rename" onClick={handleRenameClick}>
- {translate('rename')}
- </button>
- <button id="quality-gate-copy" onClick={handleCopyClick}>
- {translate('copy')}
- </button>
- <button id="quality-gate-toggle-default" onClick={handleSetAsDefaultClick}>
- {qualityGate.isDefault ? translate('unset_as_default') : translate('set_as_default')}
- </button>
- <button id="quality-gate-delete" className="button-red" onClick={handleDeleteClick}>
- {translate('delete')}
- </button>
- </div>
- </div>}
+ <div className="layout-page-header-panel layout-page-main-header issues-main-header">
+ <div className="layout-page-header-panel-inner layout-page-main-header-inner">
+ <div className="layout-page-main-inner">
+ <h2 className="pull-left">
+ {qualityGate.name}
+ </h2>
+ {edit &&
+ <div className="pull-right">
+ <div className="button-group">
+ <button id="quality-gate-rename" onClick={handleRenameClick}>
+ {translate('rename')}
+ </button>
+ <button id="quality-gate-copy" onClick={handleCopyClick}>
+ {translate('copy')}
+ </button>
+ <button id="quality-gate-toggle-default" onClick={handleSetAsDefaultClick}>
+ {qualityGate.isDefault
+ ? translate('unset_as_default')
+ : translate('set_as_default')}
+ </button>
+ <button id="quality-gate-delete" className="button-red" onClick={handleDeleteClick}>
+ {translate('delete')}
+ </button>
+ </div>
+ </div>}
+ </div>
+ </div>
</div>
);
}
export default function Intro() {
return (
- <div className="search-navigator-workspace">
- <div className="search-navigator-intro markdown">
- <p>
- {translate('quality_gates.intro.1')}
- </p>
- <p>
- {translate('quality_gates.intro.2')}
- </p>
+ <div className="layout-page-main">
+ <div className="layout-page-main-inner">
+ <div className="search-navigator-intro markdown">
+ <p>
+ {translate('quality_gates.intro.1')}
+ </p>
+ <p>
+ {translate('quality_gates.intro.2')}
+ </p>
+ </div>
</div>
</div>
);
}
return (
- <div>
+ <header className="page-header">
<h1 className="page-title">
{translate('quality_gates.page')}
</h1>
</button>
</div>
</div>}
- </div>
+ </header>
);
}
const { children, qualityGates, edit } = this.props;
const defaultTitle = translate('quality_gates.page');
return (
- <div className="search-navigator sticky search-navigator-extended-view">
+ <div className="layout-page">
<Helmet defaultTitle={defaultTitle} titleTemplate={'%s - ' + defaultTitle} />
- <div className="search-navigator-side search-navigator-side-light" style={{ top: 30 }}>
- <div className="search-navigator-filters">
- <ListHeader canEdit={edit} onAdd={this.handleAdd.bind(this)} />
- </div>
- <div className="quality-gates-results panel">
- {qualityGates && <List qualityGates={qualityGates} />}
+ <div className="layout-page-side-outer">
+ <div className="layout-page-side" style={{ top: 30 }}>
+ <div className="layout-page-side-inner">
+ <div className="layout-page-filters">
+ <ListHeader canEdit={edit} onAdd={this.handleAdd.bind(this)} />
+ {qualityGates && <List qualityGates={qualityGates} />}
+ </div>
+ </div>
</div>
</div>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>css=.quality-gates-results a</td>
+ <td>css=a.list-group-item</td>
<td></td>
</tr>
<tr>
<td>click</td>
- <td>css=.quality-gates-results a</td>
+ <td>css=a.list-group-item</td>
<td></td>
</tr>
<tr>