mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-25 16:42:00 +00:00
almost rebased
This commit is contained in:
24
chapter25/17_user_profile_with_virtual_attribute.jade
Normal file
24
chapter25/17_user_profile_with_virtual_attribute.jade
Normal file
@@ -0,0 +1,24 @@
|
||||
h1= user.full_name
|
||||
|
||||
h2 Bio
|
||||
p= user.bio
|
||||
|
||||
h2 Email
|
||||
p= user.email
|
||||
|
||||
h2 Gender
|
||||
p= user.gender
|
||||
|
||||
h2 Birthday
|
||||
p= user.birthday
|
||||
|
||||
- if (user.twitter) {
|
||||
h2 Twitter
|
||||
p
|
||||
a(href= user.twitter_url)="@" + user.twitter
|
||||
- }
|
||||
|
||||
|
||||
form(action="/users/" + encodeURIComponent(user.username), method="POST")
|
||||
input(name="_method", type="hidden", value="DELETE")
|
||||
input(type="submit", value="Delete")
|
||||
Reference in New Issue
Block a user