Permalink
Browse files

Make new page link in nav actually link to new page

  • Loading branch information...
1 parent 5da29ae commit 60922fd37b8b9c42ed81b8a4884bb8473f3d5939 @namelessjon committed Feb 26, 2010
Showing with 3 additions and 2 deletions.
  1. +2 −1 shows/page.js
  2. +1 −1 templates/layout.html
View
@@ -28,7 +28,8 @@ function(doc, req) {
// date : doc.created_at,
// author : doc.author,
assets : assetPath(),
- content: template(templates.page, {})
+ content: template(templates.page, {}),
+ newPagePath: showPath('edit', "")
// editPostPath : showPath('edit', doc._id),
// index : listPath('index','recent-posts',{descending:true, limit:5})
});
View
@@ -11,7 +11,7 @@
<div id="menu">
<ul id="nav">
<li><a href="#">Home</a></li>
- <li><a href="#">New</a></li>
+ <li><a href="<%= newPagePath %>">New</a></li>
<li><a href="#">All</a></li>
<li><a href="#">Recent</a></li>
</ul>

0 comments on commit 60922fd

Please sign in to comment.