mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 22:51:37 +00:00
started moving content to corretn divs
This commit is contained in:
@@ -1,25 +1,29 @@
|
||||
extends ../layout
|
||||
//block additionalscripts
|
||||
// script(src='/javascripts/workout.js')
|
||||
|
||||
block content
|
||||
|
||||
h1= user.name
|
||||
div#Leftpane
|
||||
h2= user.name
|
||||
|
||||
- if (session.user)
|
||||
- if (session.user.name === requested)
|
||||
h1 Private View
|
||||
- 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
|
||||
|
||||
p
|
||||
a(href="/workouts/new") Create new workout
|
||||
- else
|
||||
h2 Public View
|
||||
|
||||
- else
|
||||
h1 Public View
|
||||
- if (session.user)
|
||||
- if (session.user.is_admin === true)
|
||||
div
|
||||
button.map-link(value="/admin") Goto Admin Page
|
||||
|
||||
h2 Recent workouts:
|
||||
ul
|
||||
- recentworkouts.forEach(function(workout) {
|
||||
li
|
||||
a(href="/workouts/" + encodeURIComponent(workout._id))= workout._id
|
||||
- });
|
||||
div#Rightpane
|
||||
|
||||
include ../workouts/recent
|
||||
|
||||
- if (session.user)
|
||||
- if (session.user.is_admin === true)
|
||||
a(href="/admin") Goto Admin Page
|
||||
Reference in New Issue
Block a user