diff options
author | Colin Okay <colin@cicadas.surf> | 2022-10-27 14:51:23 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-10-27 14:51:23 -0500 |
commit | f80c82597ffcf3a65cc49ffca8f3b7ffa8117c27 (patch) | |
tree | 8d0094933ebfaff490319cecf9e3c94ee5c316c4 /user.lisp | |
parent | c5f0f6c32f3aa5ce2cac56e10585dac49617dec7 (diff) |
Add: navigation header
Diffstat (limited to 'user.lisp')
-rw-r--r-- | user.lisp | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -26,17 +26,15 @@ (new-playlist (session-user parent) :title (value pl-title)) (reload (location (connection-body parent))))))) -(defun url-to-playlist (pl location) - (format nil "~a//~a/playlist/~a" - (protocol location) - (host location) +(defun url-to-playlist (pl) + (format nil "/playlist/~a" (key pl))) (defun create-playlist-listing (parent &rest args) (declare (ignorable args)) (dolist (pl (user-playlists (session-user parent))) (let ((url - (url-to-playlist pl (location (connection-body parent))))) + (url-to-playlist pl))) (with-clog-create parent (div () (section (:h4) @@ -50,6 +48,7 @@ (defun user-home-page (body) (with-clog-create body (div () + (navigation-header ()) (p (:content (format nil "Welcome ~a" (user-name (session-user body))))) (new-playlist-form ()) (playlist-listing ())))) |