mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-02-06 22:41:40 +00:00
upgraded to express 3.x, converted jade templates, and worked out array notation for articles/exercises
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
h1 Articles
|
||||
extends ../layout
|
||||
|
||||
p
|
||||
a(href="/articles/new") Create new article
|
||||
block content
|
||||
h1 Articles
|
||||
|
||||
p!= partial('articles/list', {articles: articles})
|
||||
p
|
||||
a(href="/articles/new") Create new article
|
||||
p
|
||||
a(href="/users") List Users
|
||||
p
|
||||
a(href="/articles") List Articles
|
||||
|
||||
- if (page > 0) {
|
||||
a(href="?page=" + (page - 1)) Previous
|
||||
|
||||
- }
|
||||
|
||||
- if (! lastPage) {
|
||||
a(href="?page=" + (page + 1)) Next
|
||||
- }
|
||||
include list
|
||||
|
||||
- if (page > 0) {
|
||||
a(href="?page=" + (page - 1)) Previous
|
||||
|
||||
- }
|
||||
|
||||
- if (! lastPage) {
|
||||
a(href="?page=" + (page + 1)) Next
|
||||
- }
|
||||
Reference in New Issue
Block a user