mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-26 15:11:38 +00:00
30 lines
659 B
Plaintext
30 lines
659 B
Plaintext
extends ../layout
|
|
//block additionalscripts
|
|
// script(src='/javascripts/workout.js')
|
|
|
|
block content
|
|
|
|
div#Leftpane
|
|
h2= user.name
|
|
|
|
- if (session.user)
|
|
- if (session.user.name === requested)
|
|
h2 Private View
|
|
div
|
|
button.map-link(value="/workouts/" + encodeURIComponent(session.user.name) + "/recent") Recent workouts
|
|
div
|
|
button.map-link(value="/workouts/new") Create new workout
|
|
|
|
- else
|
|
h2 Public View
|
|
|
|
- if (session.user)
|
|
- if (session.user.is_admin === true)
|
|
div
|
|
button.map-link(value="/admin") Goto Admin Page
|
|
|
|
div#Rightpane
|
|
|
|
include ../workouts/recent
|
|
|