1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 16:48:04 +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(){
if ('getFormData' in this.props){
return this.props.getFormData();
}
let data = {};
if ('getFormData' in this.props){
data = this.props.getFormData();
}
for (let ref in this.refs){
data[this.refs[ref].props.name] = this.refs[ref].state.value;
}

View File

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

View File

@ -106,9 +106,6 @@ let PasswordResetForm = React.createClass({
getFormData(){
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.token = this.props.token;
return data;

View File

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