migrating repo to Bodyrep org

This commit is contained in:
2013-01-19 11:23:43 -05:00
parent 31b7303f43
commit 4ea082330b
891 changed files with 142706 additions and 0 deletions

22
views/users/profile.jade Normal file
View File

@@ -0,0 +1,22 @@
extends ../layout
block content
h1= user.name
- if (session.user.name === requested)
h1 Private View
p
a(href="/workouts/new") Create new workout
- else
h1 Public View
h2 Recent workouts:
ul
- recentworkouts.forEach(function(workout) {
li
a(href="/workouts/" + encodeURIComponent(workout._id))= workout._id
- });
- if (session.user.is_admin === true)
a(href="/users/") Goto Admin Page