mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-26 07:01:38 +00:00
little man
This commit is contained in:
26
views/users/sidebar.jade
Normal file
26
views/users/sidebar.jade
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user