mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-14 00:19:16 +01:00
added some traffic lights
This commit is contained in:
parent
326a4a9290
commit
d96ec03bc9
@ -0,0 +1,16 @@
|
||||
.toggle-active {
|
||||
border: 1px solid black;
|
||||
display: inline-block;
|
||||
background-color: #3B7908;
|
||||
border-radius: 50%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
.toggle-inactive {
|
||||
border: 1px solid black;
|
||||
display: inline-block;
|
||||
background-color: #E7384A;
|
||||
border-radius: 50%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
@ -37,11 +37,13 @@ var Feature = React.createClass({
|
||||
},
|
||||
|
||||
renderViewMode: function() {
|
||||
var strikeThrough = this.props.feature.enabled ? '' : 'strikethrough';
|
||||
|
||||
return (
|
||||
<tr>
|
||||
<td className={strikeThrough}>
|
||||
<td width="20">
|
||||
<span className={this.props.feature.enabled ? "toggle-active" : "toggle-inactive"} title="Status">
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
{this.props.feature.name}
|
||||
</td>
|
||||
|
||||
@ -53,7 +55,7 @@ var Feature = React.createClass({
|
||||
{this.props.feature.strategy}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<td className="rightify">
|
||||
<input type='button' value='Edit' onClick={this.toggleEditMode}/>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -17,6 +17,7 @@ var FeatureList = React.createClass({
|
||||
<table className='outerborder'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Strategy</th>
|
||||
|
Loading…
Reference in New Issue
Block a user