[Place show previews into their own composite container clinton@unknownlamer.org**20080117175803 This keeps the sidebar and other useful things displayed when viewing a show from the main page ] { hunk ./src/web-frontend.lisp 45 -(defcontainer golf-frontend-components (composite-component) - (chooser sidebar-show-chooser - :reverse t :window-size 10 :max (get-universal-time)) +(defcontainer next-last-show-previews (composite-component) hunk ./src/web-frontend.lisp 55 +(defcontainer golf-frontend-components (composite-component) + (chooser sidebar-show-chooser + :reverse t :window-size 10 :max (get-universal-time)) + (show-previews next-last-show-previews)) + +(defmethod render ((self next-last-show-previews)) + (with-assoc (last-show next-show) (container.contents self) + (<:div :class "last-show" (render last-show)) + (<:div :class "next-show" (render next-show)) + (<:div :style "clear: both" (<:as-html " ")))) + hunk ./src/web-frontend.lisp 67 - (with-assoc (chooser last-show next-show) (container.contents self) + (with-assoc (chooser show-previews) (container.contents self) hunk ./src/web-frontend.lisp 70 - (<:div :class "show-previews" - (<:div :class "last-show" - (<:h1 "Last Show") - (render last-show)) - (<:div :class "next-show" - (<:h1 "Next Show") - (render next-show)) - (<:div :style "clear: both" (<:as-html " "))) + ;; (<:div :class "show-previews" +;; (<:div :class "last-show" +;; (<:h1 "Last Show") +;; (render last-show)) +;; (<:div :class "next-show" +;; (<:h1 "Next Show") +;; (render next-show)) +;; (<:div :style "clear: both" (<:as-html " "))) + (render show-previews) hunk ./src/web-frontend.lisp 90 - (archive . ,(make-instance 'standard-ranged-show-chooser)))))) + (archive . ,(make-instance 'standard-ranged-show-chooser :viewer 'full-show-viewer)))))) hunk ./static-data/css/tee-it-up.css 56 - + hunk ./static-data/css/tee-it-up.css 101 -.golf-frontend-components .show-previews .show-previewer h1 +.golf-frontend-components .next-last-show-previews .show-previewer h1 hunk ./static-data/css/tee-it-up.css 103 -.golf-frontend-components .show-previews .show-previewer h2 +.golf-frontend-components .next-last-show-previews .show-previewer h2 hunk ./static-data/css/tee-it-up.css 115 -.show-previews .last-show { display: float; - float: left; - width: 35%; - left: 0%; } +.next-last-show-previews .last-show { display: float; + float: left; + width: 35%; + left: 0%; } hunk ./static-data/css/tee-it-up.css 120 -.show-previews .next-show { display: float; - float: right; - width: 35%; - left: 50%; } +.next-last-show-previews .next-show { display: float; + float: right; + width: 35%; + left: 50%; } }