mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
Merge branch 'AD-499-whitelabel-prize-with-sluice-as-k' of bitbucket.org:ascribe/onion into AD-499-whitelabel-prize-with-sluice-as-k
This commit is contained in:
commit
9cc12ab841
@ -22,6 +22,7 @@ let MediaContainer = React.createClass({
|
|||||||
let mimetype = this.props.content.digital_work.mime;
|
let mimetype = this.props.content.digital_work.mime;
|
||||||
let embed = null;
|
let embed = null;
|
||||||
let extraData = null;
|
let extraData = null;
|
||||||
|
let isEmbedDisabled = mimetype === 'video' && this.props.content.digital_work.isEncoding !== undefined && this.props.content.digital_work.isEncoding !== 100;
|
||||||
|
|
||||||
if (this.props.content.digital_work.encoding_urls) {
|
if (this.props.content.digital_work.encoding_urls) {
|
||||||
extraData = this.props.content.digital_work.encoding_urls.map(e => { return { url: e.url, type: e.label }; });
|
extraData = this.props.content.digital_work.encoding_urls.map(e => { return { url: e.url, type: e.label }; });
|
||||||
@ -31,15 +32,14 @@ let MediaContainer = React.createClass({
|
|||||||
embed = (
|
embed = (
|
||||||
<CollapsibleButton
|
<CollapsibleButton
|
||||||
button={
|
button={
|
||||||
<Button bsSize="xsmall" className="ascribe-margin-1px">
|
<Button bsSize="xsmall" className="ascribe-margin-1px" disabled={isEmbedDisabled ? '"disabled"' : ''}>
|
||||||
Embed
|
Embed
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
panel={
|
panel={
|
||||||
<pre className="">
|
<pre className="">
|
||||||
{'<iframe width="560" height="315" src="http://embed.ascribe.io/content/'
|
{'<iframe width="560" height="315" src="http://embed.ascribe.io/content/'
|
||||||
+ this.props.content.bitcoin_id + '" frameborder="0" allowfullscreen></iframe>'
|
+ this.props.content.bitcoin_id + '" frameborder="0" allowfullscreen></iframe>'}
|
||||||
}
|
|
||||||
</pre>
|
</pre>
|
||||||
}/>
|
}/>
|
||||||
);
|
);
|
||||||
@ -50,7 +50,8 @@ let MediaContainer = React.createClass({
|
|||||||
mimetype={mimetype}
|
mimetype={mimetype}
|
||||||
preview={thumbnail}
|
preview={thumbnail}
|
||||||
url={this.props.content.digital_work.url}
|
url={this.props.content.digital_work.url}
|
||||||
extraData={extraData} />
|
extraData={extraData}
|
||||||
|
encodingStatus={this.props.content.digital_work.isEncoding} />
|
||||||
<p className="text-center">
|
<p className="text-center">
|
||||||
<AclProxy
|
<AclProxy
|
||||||
aclObject={this.props.content.acl}
|
aclObject={this.props.content.acl}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user