mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-25 16:42:00 +00:00
almost rebased
This commit is contained in:
19
chapter25/25_article_list.jade
Normal file
19
chapter25/25_article_list.jade
Normal file
@@ -0,0 +1,19 @@
|
||||
h1 Articles
|
||||
|
||||
p
|
||||
a(href="/articles/new") Create new article
|
||||
|
||||
ul
|
||||
- articles.forEach(function(article) {
|
||||
li
|
||||
a(href="/articles/" + encodeURIComponent(article.title))= article.title
|
||||
- });
|
||||
|
||||
- if (page > 0) {
|
||||
a(href="?page=" + (page - 1)) Previous
|
||||
|
||||
- }
|
||||
|
||||
- if (! lastPage) {
|
||||
a(href="?page=" + (page + 1)) Next
|
||||
- }
|
||||
Reference in New Issue
Block a user