mirror of
https://github.com/bodyrep/DemoApp.git
synced 2025-12-06 06:01:48 +00:00
26 lines
662 B
Plaintext
26 lines
662 B
Plaintext
h2= user.name
|
|
div#userphoto
|
|
User Pictures
|
|
|
|
- if (session.user)
|
|
- if (session.user.username === requested)
|
|
h2 Private View
|
|
div
|
|
button.recent-link(value= encodeURIComponent(session.user.username) ) Recent workouts
|
|
div
|
|
button.newex-link(value="/workouts/new") Create new workout
|
|
div
|
|
button.map-link(value="/users/" + encodeURIComponent(session.user.username) + "/edit") Edit User
|
|
div
|
|
button Placeholder2
|
|
- 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 |