Merge pull request #203 from influxdata/feature/header-host-view

Add header to hosts show
pull/10616/head
Will Piers 2016-10-06 12:47:24 -07:00 committed by GitHub
commit e0885b0895
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>
);