mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-02-07 15:01:52 +00:00
almost rebased
This commit is contained in:
21
chapter25/06_user_list_with_paging.jade
Normal file
21
chapter25/06_user_list_with_paging.jade
Normal file
@@ -0,0 +1,21 @@
|
||||
h1 Users
|
||||
|
||||
p
|
||||
a(href="/users/new") Create new profile
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ul
|
||||
- for(var username in users) {
|
||||
li
|
||||
a(href="/users/" + encodeURIComponent(username))= users[username].name
|
||||
- };
|
||||
|
||||
- if (page > 0) {
|
||||
a(href="?page=" + (page - 1)) Previous
|
||||
|
||||
- }
|
||||
|
||||
a(href="?page=" + (page + 1)) Next
|
||||
Reference in New Issue
Block a user