Skip to content

Commit

Permalink
add layout in view
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-lin committed Dec 11, 2013
1 parent d9a3267 commit 7675c68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion views/edit.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<% layout( 'layout' ) -%>

<h1 id="page-title"><%= title %></h1>
<div id="list">
<form action="/create" method="post" accept-charset="utf-8">
Expand Down Expand Up @@ -28,4 +30,4 @@
<% } %>
</div>
<% }); %>
</div>
</div>
4 changes: 3 additions & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<% layout( 'layout' ) -%>

<h1 id="page-title"><%= title %></h1>

<div id="list">
Expand All @@ -13,4 +15,4 @@
<a class="del-btn" href="/destroy/<%= todo._id %>" title="Delete this todo item">Delete</a>
</div>
<% }); %>
</div>
</div>

0 comments on commit 7675c68

Please sign in to comment.