mirror of
https://github.com/sstent/expressmongotest.git
synced 2026-01-25 16:42:00 +00:00
23 lines
444 B
Plaintext
23 lines
444 B
Plaintext
extends ../layout
|
|
block content
|
|
h1= user.name
|
|
|
|
- if (session.user.name === requested)
|
|
h1 Private View
|
|
|
|
p
|
|
a(href="/workouts/new") Create new workout
|
|
|
|
- else
|
|
h1 Public View
|
|
|
|
h2 Recent workouts:
|
|
ul
|
|
- recentworkouts.forEach(function(workout) {
|
|
li
|
|
a(href="/workouts/" + encodeURIComponent(workout._id))= workout.title
|
|
- });
|
|
|
|
- if (session.user.is_admin === true)
|
|
a(href="/users/") Goto Admin Page
|