Skip to content

Commit

Permalink
add host info of the zk server
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoweiguo committed Aug 1, 2014
1 parent 8139c1d commit 8caa499
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ app.namespace("/node-zk",function(){
//display tree
app.get('/tree', function(req, res){
var path=req.query.path || "/";
res.render('tree', {layout:false,'path':path });
res.render('tree', {layout:false,'path':path, 'host':host});
});

//login
Expand Down
1 change: 1 addition & 0 deletions views/tree.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
</script>
<div id="container">
<h2><a target="_blank" href="https://github.com/killme2008/node-zk-browser" style='text-decoration:none;'>Node-ZK-Browser</a></h2>
<div><%= host %></div>
<div>
<a href="/node-zk/create" target="content">create path</a>
</div>
Expand Down

0 comments on commit 8caa499

Please sign in to comment.