mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 14:43:00 +00:00
fixed search and filters
This commit is contained in:
@@ -5,25 +5,8 @@ extends ../layout
|
||||
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
|
||||
include ./sidebar
|
||||
|
||||
div#Rightpane
|
||||
|
||||
include ../workouts/recent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user