mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-31 11:31:56 +00:00
upgraded to express 3.x, converted jade templates, and worked out array notation for articles/exercises
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
h1= user.name
|
||||
extends ../layout
|
||||
block content
|
||||
h1= user.name
|
||||
|
||||
h2 Recent Articles:
|
||||
p!= partial('articles/list', {articles: recentArticles })
|
||||
h2 Recent Articles:
|
||||
p!= partial('articles/list', {articles: recentArticles })
|
||||
|
||||
|
||||
form(action="/users/" + encodeURIComponent(user.username), method="POST")
|
||||
input(name="_method", type="hidden", value="DELETE")
|
||||
input(type="submit", value="Delete")
|
||||
form(action="/users/" + encodeURIComponent(user.username), method="POST")
|
||||
input(name="_method", type="hidden", value="DELETE")
|
||||
input(type="submit", value="Delete")
|
||||
|
||||
a(href="/users/") Back to Userlist
|
||||
a(href="/users/") Back to Userlist
|
||||
Reference in New Issue
Block a user