Skip to content

Commit

Permalink
update header
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed Jan 14, 2012
1 parent 9fe9dc0 commit e867d52
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions lib/cube/client/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ cube.header = function(board) {
.attr("class", "left");

left.append("a")
.attr("href", "/" + board.id)
.attr("href", "/")
.append("button")
.text("View");
.text("Home");

left.append("a")
.attr("href", "/" + board.id + "/edit")
.append("button")
.text("Edit");
if (mode == "edit") {
left.append("a")
.attr("href", "/" + board.id)
.append("button")
.text("View");
} else {
left.append("a")
.attr("href", "/" + board.id + "/edit")
.append("button")
.text("Edit");
}

var viewers = selection.append("div")
.attr("class", "right");
Expand Down

0 comments on commit e867d52

Please sign in to comment.