mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
acl for powered_by
This commit is contained in:
parent
f64fb73aa6
commit
08c3bfe7fb
@ -64,31 +64,33 @@ let Header = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getLogo(){
|
getLogo(){
|
||||||
let logo = (
|
if (this.state.whitelabel && this.state.whitelabel.logo){
|
||||||
|
return <img className="img-brand" src={this.state.whitelabel.logo} />;
|
||||||
|
}
|
||||||
|
return (
|
||||||
<span>
|
<span>
|
||||||
<span>ascribe </span>
|
<span>ascribe </span>
|
||||||
<span className="glyph-ascribe-spool-chunked ascribe-color"></span>
|
<span className="glyph-ascribe-spool-chunked ascribe-color"></span>
|
||||||
</span>);
|
</span>
|
||||||
if (this.state.whitelabel && this.state.whitelabel.logo){
|
);
|
||||||
logo = <img className="img-brand" src={this.state.whitelabel.logo} />;
|
|
||||||
}
|
|
||||||
return logo;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getPoweredBy(){
|
getPoweredBy(){
|
||||||
if (this.state.whitelabel && this.state.whitelabel.logo) {
|
return (
|
||||||
return (
|
<AclProxy
|
||||||
<li>
|
aclObject={this.state.whitelabel}
|
||||||
<a className="pull-right" href="https://www.ascribe.io/" target="_blank">
|
aclName="acl_view_powered_by">
|
||||||
<span id="powered">{getLangText('powered by')} </span>
|
<li>
|
||||||
<span>ascribe </span>
|
<a className="pull-right" href="https://www.ascribe.io/" target="_blank">
|
||||||
<span className="glyph-ascribe-spool-chunked ascribe-color"></span>
|
<span id="powered">{getLangText('powered by')} </span>
|
||||||
</a>
|
<span>ascribe </span>
|
||||||
</li>
|
<span className="glyph-ascribe-spool-chunked ascribe-color"></span>
|
||||||
);
|
</a>
|
||||||
}
|
</li>
|
||||||
return null;
|
</AclProxy>
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
onChange(state) {
|
onChange(state) {
|
||||||
this.setState(state);
|
this.setState(state);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user