Skip to content

Commit

Permalink
Doc Site - Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Nguyen committed Dec 2, 2014
1 parent fc3232f commit 20c4c61
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/src/app/components/master.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ var Master = React.createClass({
mixins: [Router.State],

render: function() {
var title;
if (this.isActive('get-started')) title = 'Get Started';
if (this.isActive('css-framework')) title = 'Css Framework';
if (this.isActive('components')) title = 'Components';

var title =
(this.isActive('get-started')) ? 'Get Started' :
(this.isActive('css-framework')) ? 'Css Framework' :
(this.isActive('components')) ? 'Components' : '';

return (
<AppCanvas predefinedLayout={1}>
Expand Down

0 comments on commit 20c4c61

Please sign in to comment.