| |
@@ -1,85 +1,19 @@
|
| |
- import React, { Component } from "react"
|
| |
- import { Row } from "reactstrap"
|
| |
+ import React from "react"
|
| |
import SourceLink from "./SourceLink"
|
| |
+ import Stats from "./Stats"
|
| |
|
| |
- class Blockers extends Component {
|
| |
- constructor(props) {
|
| |
- super(props)
|
| |
- this.state = { blockerbugs: {}, release: 0 }
|
| |
- }
|
| |
-
|
| |
- render() {
|
| |
- if (this.props.data)
|
| |
- return (
|
| |
- <div>
|
| |
- <h1 className="padded">
|
| |
- Fedora {this.props.release} blockers and FEs{" "}
|
| |
- <SourceLink href="https://qa.fedoraproject.org/blockerbugs/" />
|
| |
- </h1>
|
| |
- <Row>
|
| |
- <div className="col-md-6">
|
| |
- <table className="events">
|
| |
- <thead>
|
| |
- <tr>
|
| |
- <td colSpan="2">
|
| |
- <b>Beta</b>
|
| |
- </td>
|
| |
- </tr>
|
| |
- </thead>
|
| |
- <tbody>
|
| |
- <tr>
|
| |
- <td>Proposed Blockers</td>
|
| |
- <td className="bugscount">{this.props.data.beta_blockers_proposed}</td>
|
| |
- </tr>
|
| |
- <tr>
|
| |
- <td>Accepted Blockers</td>
|
| |
- <td className="bugscount">{this.props.data.beta_blockers}</td>
|
| |
- </tr>
|
| |
- <tr>
|
| |
- <td>Proposed FEs</td>
|
| |
- <td className="bugscount">{this.props.data.beta_fe_proposed}</td>
|
| |
- </tr>
|
| |
- <tr>
|
| |
- <td>Accepted FEs</td>
|
| |
- <td className="bugscount">{this.props.data.beta_fe}</td>
|
| |
- </tr>
|
| |
- </tbody>
|
| |
- </table>
|
| |
- </div>
|
| |
-
|
| |
- <div className="col-md-6">
|
| |
- <table className="events">
|
| |
- <thead>
|
| |
- <tr>
|
| |
- <td colSpan="2">
|
| |
- <b>Final</b>
|
| |
- </td>
|
| |
- </tr>
|
| |
- </thead>
|
| |
- <tbody>
|
| |
- <tr>
|
| |
- <td>Proposed Blockers</td>
|
| |
- <td className="bugscount">{this.props.data.final_blockers_proposed}</td>
|
| |
- </tr>
|
| |
- <tr>
|
| |
- <td>Accepted Blockers</td>
|
| |
- <td className="bugscount">{this.props.data.final_blockers}</td>
|
| |
- </tr>
|
| |
- <tr>
|
| |
- <td>Proposed FEs</td>
|
| |
- <td className="bugscount">{this.props.data.final_fe_proposed}</td>
|
| |
- </tr>
|
| |
- <tr>
|
| |
- <td>Accepted FEs</td>
|
| |
- <td className="bugscount">{this.props.data.final_fe}</td>
|
| |
- </tr>
|
| |
- </tbody>
|
| |
- </table>
|
| |
- </div>
|
| |
- </Row>
|
| |
- </div>
|
| |
- )
|
| |
- }
|
| |
+ const Blockers = ({data, release}) => {
|
| |
+
|
| |
+ if (data)
|
| |
+ return (
|
| |
+ <div>
|
| |
+ <h1 className="padded">
|
| |
+ Fedora {release} blockers and FEs{" "}
|
| |
+ <SourceLink href="https://qa.fedoraproject.org/blockerbugs/" />
|
| |
+ </h1>
|
| |
+ <Stats data={data} />
|
| |
+ </div>
|
| |
+ )
|
| |
}
|
| |
|
| |
export default Blockers
|
| |
Issue
https://pagure.io/fedora-qa/landingpage/issue/6
Changes