mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-02-02 12:32:15 +00:00
almost rebased
This commit is contained in:
15
chapter25/28_article_list_new_version.jade
Normal file
15
chapter25/28_article_list_new_version.jade
Normal file
@@ -0,0 +1,15 @@
|
||||
h1 Articles
|
||||
|
||||
p
|
||||
a(href="/articles/new") Create new article
|
||||
|
||||
p!= partial('articles/list', {articles: articles})
|
||||
|
||||
- if (page > 0) {
|
||||
a(href="?page=" + (page - 1)) Previous
|
||||
|
||||
- }
|
||||
|
||||
- if (! lastPage) {
|
||||
a(href="?page=" + (page + 1)) Next
|
||||
- }
|
||||
Reference in New Issue
Block a user