1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Merged in AD-1029-add-filter-for-submitted-accepte (pull request #71)

filter for submitted and accepted on ikonotv
This commit is contained in:
diminator 2015-09-22 13:14:28 +02:00
commit 54a1049b48
3 changed files with 31 additions and 5 deletions

View File

@ -80,6 +80,16 @@ let CylandAccordionListItem = React.createClass({
aria-hidden="true"></span> aria-hidden="true"></span>
</button> </button>
</AclProxy> </AclProxy>
<AclProxy
aclObject={this.props.content.acl}
aclName="acl_accepted">
<button
disabled
className="btn btn-default btn-xs pull-right">
{getLangText('Loaned to Cyland')} <span className="glyphicon glyphicon-ok"
aria-hidden="true"></span>
</button>
</AclProxy>
</div> </div>
); );
}, },

View File

@ -75,6 +75,16 @@ let IkonotvAccordionListItem = React.createClass({
aclName="acl_submitted"> aclName="acl_submitted">
<button <button
disabled disabled
className="btn btn-default btn-xs pull-right">
{getLangText('Submitted to IkonoTV')} <span className="glyphicon glyphicon-ok"
aria-hidden="true"></span>
</button>
</AclProxy>
<AclProxy
aclObject={this.props.content.acl}
aclName="acl_accepted">
<button
disabled
className="btn btn-default btn-xs pull-right"> className="btn btn-default btn-xs pull-right">
{getLangText('Loaned to IkonoTV')} <span className="glyphicon glyphicon-ok" {getLangText('Loaned to IkonoTV')} <span className="glyphicon glyphicon-ok"
aria-hidden="true"></span> aria-hidden="true"></span>

View File

@ -37,10 +37,16 @@ let IkonotvPieceList = React.createClass({
accordionListItemType={IkonotvAccordionListItem} accordionListItemType={IkonotvAccordionListItem}
filterParams={[{ filterParams={[{
label: getLangText('Show works I have'), label: getLangText('Show works I have'),
items: [{ items: [
key: 'acl_loaned', {
label: getLangText('loaned to IkonoTV') key: 'submitted',
}] label: getLangText('submitted')
},
{
key: 'accepted',
label: getLangText('loaned')
}
]
}]}/> }]}/>
</div> </div>
); );