1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 21:52:08 +02:00

whitelabel logo + sluice

This commit is contained in:
diminator 2015-07-10 11:59:03 +02:00
parent 22b201f388
commit 6a84e9d36e
4 changed files with 18 additions and 16 deletions

View File

@ -54,10 +54,10 @@ let Form = React.createClass({
}, },
getFormData(){ getFormData(){
if ('getFormData' in this.props){
return this.props.getFormData();
}
let data = {}; let data = {};
if ('getFormData' in this.props){
data = this.props.getFormData();
}
for (let ref in this.refs){ for (let ref in this.refs){
data[this.refs[ref].props.name] = this.refs[ref].state.value; data[this.refs[ref].props.name] = this.refs[ref].state.value;
} }

View File

@ -66,12 +66,16 @@ let Header = React.createClass({
getPoweredBy(){ getPoweredBy(){
if (this.state.whitelabel.logo) { if (this.state.whitelabel.logo) {
return ( return (
<div className="row no-margin ascribe-subheader"> <div className="row ascribe-subheader">
<a className="pull-right" href="https://www.ascribe.io/" target="_blank"> <div className="col-xs-12 col-sm-10 col-md-8 col-lg-8 col-sm-offset-1 col-md-offset-2 col-lg-offset-2">
<span id="powered">{getLangText('powered by')} </span> <div className="row">
<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>
<span className="glyph-ascribe-spool-chunked ascribe-color"></span>
</a>
</div>
</div>
</div>); </div>);
} }
return null; return null;

View File

@ -106,9 +106,6 @@ let PasswordResetForm = React.createClass({
getFormData(){ getFormData(){
let data = {}; let data = {};
for (let ref in this.refs.form.refs){
data[this.refs.form.refs[ref].props.name] = this.refs.form.refs[ref].state.value;
}
data.email = this.props.email; data.email = this.props.email;
data.token = this.props.token; data.token = this.props.token;
return data; return data;

View File

@ -62,6 +62,11 @@ hr {
font-size: 0.8em; font-size: 0.8em;
} }
.img-brand {
padding: 0;
height: 45px;
margin: 5px 0 5px 0;
}
.truncate { .truncate {
white-space: nowrap; white-space: nowrap;
width: 4em; width: 4em;
@ -96,10 +101,6 @@ hr {
color: $ascribe-color; color: $ascribe-color;
} }
.img-brand{
height: 25px;
}
.ascribe-subheader{ .ascribe-subheader{
padding-bottom: 10px; padding-bottom: 10px;
margin-top: -10px; margin-top: -10px;