mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-26 00:52:11 +00:00
almost rebased
This commit is contained in:
19
chapter25/18_user_list_with_virtual_attribute.jade
Normal file
19
chapter25/18_user_list_with_virtual_attribute.jade
Normal file
@@ -0,0 +1,19 @@
|
||||
h1 Users
|
||||
|
||||
p
|
||||
a(href="/users/new") Create new profile
|
||||
|
||||
ul
|
||||
- users.forEach(function(user) {
|
||||
li
|
||||
a(href="/users/" + encodeURIComponent(user.username))= user.full_name
|
||||
- });
|
||||
|
||||
- if (page > 0) {
|
||||
a(href="?page=" + (page - 1)) Previous
|
||||
|
||||
- }
|
||||
|
||||
- if (! lastPage) {
|
||||
a(href="?page=" + (page + 1)) Next
|
||||
- }
|
||||
Reference in New Issue
Block a user