From 3352bdbca0347d3c6b741868f4b4f5cf5541c83e Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Sat, 21 Nov 2015 17:18:25 +0100 Subject: [PATCH] improved navbar, removed dead code --- webapp/app.jsx | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/webapp/app.jsx b/webapp/app.jsx index 22d5bf4..f087939 100644 --- a/webapp/app.jsx +++ b/webapp/app.jsx @@ -39,14 +39,23 @@ var App = React.createClass({ }) var Navbar = React.createClass({ + extraButtons: function(){ + if(boards.id && boards.version){ + return + + + + } else { + return + } + }, render: function(){ return (
{this.props.children ||

Boards

}
- - + {this.extraButtons()}
@@ -70,19 +79,6 @@ var Static = React.createClass({ } }) -/*var Homepage = React.createClass({ - render: function(){ - return ( -
-

Welcome to the IPFS Boards Prototype

-

Not much is implemented...

-

You can try Opening my Profile though :)

-

More information about the project on GitHub

-
- ) - } -})*/ - var Homepage = React.createClass({ render: function(){ return @@ -93,7 +89,8 @@ var GetIPFS = React.createClass({ render: function(){ return (
-

Missing IPFS Node

+

Connection to IPFS not available

+

Sorry, but at the moment an external application is needed to try the Prototype

You don't have an IPFS node running at {opt.addr}:{opt.port} or it is not reachable

The IPFS Boards prototype requires a full IPFS node running at localhost. Please start one by following the