Add header to hosts show

pull/203/head
Andrew Watkins 2016-10-06 10:55:04 -07:00
parent 95b0500ad0
commit e9acafe6b7
1 changed files with 28 additions and 16 deletions

View File

@ -49,22 +49,34 @@ export const HostPage = React.createClass({
];
return (
<div className="container-fluid">
<div className="row">
{
queries.map((query) => {
const q = Object.assign({}, query, {host: source});
return (
<div className="col-md-4 graph-panel__graph-container" key={q.name}>
<h2>{q.name}</h2>
<RefreshingLineGraph
queries={[q]}
autoRefresh={autoRefreshMs}
/>
</div>
);
})
}
<div className="host">
<div className="enterprise-header">
<div className="enterprise-header__container">
<div className="enterprise-header__left">
<h1>
Host - {this.props.params.hostID}
</h1>
</div>
</div>
</div>
<div className="container-fluid">
<div className="row">
{
queries.map((query) => {
const q = Object.assign({}, query, {host: source});
return (
<div className="col-md-4 graph-panel__graph-container" key={q.name}>
<h2>{q.name}</h2>
<RefreshingLineGraph
queries={[q]}
autoRefresh={autoRefreshMs}
/>
</div>
);
})
}
</div>
</div>
</div>
);