mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-26 15:11:38 +00:00
26 lines
577 B
Plaintext
26 lines
577 B
Plaintext
h2= user.name
|
|
div#userphoto
|
|
User Pictures
|
|
|
|
- if (session.user)
|
|
- if (session.user.name === requested)
|
|
h2 Private View
|
|
div
|
|
button.recent-link(value= encodeURIComponent(session.user.name) ) Recent workouts
|
|
div
|
|
button.newex-link(value="/workouts/new") Create new workout
|
|
div
|
|
button Placeholder1
|
|
div
|
|
button Palceholder2
|
|
- else
|
|
h2 Public View
|
|
|
|
|
|
|
|
|
|
- if (session.user)
|
|
- if (session.user.is_admin === true)
|
|
div
|
|
h3 You're an Admin
|
|
button.map-link(value="/admin") Goto Admin Page |