added article

This commit is contained in:
2013-01-16 20:44:56 -05:00
parent ef1226aef6
commit a899234e21
44 changed files with 16300 additions and 20 deletions

View File

@@ -2,6 +2,8 @@ h1 Users
p
a(href="/users/new") Create new profile
p
a(href="/articles/new") Create new article
ul
- users.forEach(function(user) {

View File

@@ -10,8 +10,5 @@ form(method="POST", action="/users")
p
label(for="password") Password<br />
input#password(type="password", name="password")
p
label(for="bio") Bio<br />
textarea#bio(name="bio")
p
input(type="submit", value="Create")

View File

@@ -1,7 +1,8 @@
h1= user.name
h2 Bio
p= user.bio
h2 Recent Articles:
p!= partial('articles/list', {articles: recentArticles })
form(action="/users/" + encodeURIComponent(user.username), method="POST")
input(name="_method", type="hidden", value="DELETE")