mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-26 00:52:11 +00:00
refactored article to workout
This commit is contained in:
@@ -6,12 +6,12 @@ block content
|
||||
p
|
||||
a(href="/users/new") Create new profile
|
||||
p
|
||||
a(href="/articles/new") Create new article
|
||||
a(href="/workouts/new") Create new workout
|
||||
|
||||
p
|
||||
a(href="/users") List Users
|
||||
p
|
||||
a(href="/articles") List Articles
|
||||
a(href="/workouts") List workouts
|
||||
|
||||
|
||||
ul
|
||||
|
||||
@@ -10,9 +10,12 @@ block content
|
||||
- else
|
||||
h1 Public View
|
||||
|
||||
h2 Recent Articles:
|
||||
h2 Recent workouts:
|
||||
ul
|
||||
- recentArticles.forEach(function(article) {
|
||||
- recentworkouts.forEach(function(workout) {
|
||||
li
|
||||
a(href="/articles/" + encodeURIComponent(article._id))= article.title
|
||||
a(href="/workouts/" + encodeURIComponent(workout._id))= workout.title
|
||||
- });
|
||||
|
||||
- if (session.user.is_admin === true)
|
||||
a(href="/users/") Goto Admin Page
|
||||
|
||||
Reference in New Issue
Block a user