]> source.dussan.org Git - sonarqube.git/commitdiff
Merge remote-tracking branch 'origin/branch-5.2'
authorStas Vilchik <vilchiks@gmail.com>
Mon, 26 Oct 2015 08:50:48 +0000 (09:50 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 26 Oct 2015 08:50:48 +0000 (09:50 +0100)
1  2 
server/sonar-web/src/main/js/main/nav/global/global-nav-branding.js

index 680654fc37ecdbf61c70f22cb22ae1fb0b231893,0000000000000000000000000000000000000000..1860d5eaf2ab70966162c79588f0b15b71d11207
mode 100644,000000..100644
--- /dev/null
@@@ -1,21 -1,0 +1,21 @@@
-         width = this.props.logoWidth || null,
-         height = this.props.logoWidth ? 30 : null,
 +import React from 'react';
 +
 +export default React.createClass({
 +  renderLogo() {
 +    let url = this.props.logoUrl || `${window.baseUrl}/images/logo.svg`,
++        width = this.props.logoWidth || 100,
++        height = 30,
 +        title = window.t('layout.sonar.slogan');
 +    return <img src={url} width={width} height={height} alt={title} title={title}/>;
 +  },
 +
 +  render() {
 +    const homeUrl = window.baseUrl + '/';
 +    const homeLinkClassName = 'navbar-brand' + (this.props.logoUrl ? ' navbar-brand-custom' : '');
 +    return (
 +        <div className="navbar-header">
 +          <a className={homeLinkClassName} href={homeUrl}>{this.renderLogo()}</a>
 +        </div>
 +    );
 +  }
 +});