Fix code formating
This commit is contained in:
parent
50844eb0c2
commit
0069b5e723
2 changed files with 22 additions and 22 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
(defsystem "dev.metalisp.survey"
|
(defsystem "dev.metalisp.survey"
|
||||||
:description "Create questionnaires and analyze the results."
|
:description "Create questionnaires and analyze the results."
|
||||||
:version "0.5.2"
|
:version "0.5.3"
|
||||||
:author "Marcus Kammer <marcus.kammer@metalisp.dev>"
|
:author "Marcus Kammer <marcus.kammer@metalisp.dev>"
|
||||||
:source-control (:git "git@git.sr.ht:~marcuskammer/dev.metalisp.survey")
|
:source-control (:git "git@git.sr.ht:~marcuskammer/dev.metalisp.survey")
|
||||||
:licence "MIT"
|
:licence "MIT"
|
||||||
|
|
|
@ -32,27 +32,27 @@
|
||||||
|
|
||||||
SURVEYS: List of survey objects."
|
SURVEYS: List of survey objects."
|
||||||
(check-type surveys surveys-list)
|
(check-type surveys surveys-list)
|
||||||
(with-page (:title "Surveys")
|
(with-page (:title "Surveys")
|
||||||
(body-header "fluid" "Surveys"
|
(body-header "fluid" "Surveys"
|
||||||
(with-navbar "fluid" "Home"
|
(with-navbar "fluid" "Home"
|
||||||
"Home" "/" "New Survey" "/new-survey"))
|
"Home" "/" "New Survey" "/new-survey"))
|
||||||
(body-main "fluid"
|
(body-main "fluid"
|
||||||
(when surveys
|
(when surveys
|
||||||
(with-section
|
(with-section
|
||||||
(with-title-bar "All Surveys")
|
(with-title-bar "All Surveys")
|
||||||
(:ol :class "list-group list-group-numbered"
|
(:ol :class "list-group list-group-numbered"
|
||||||
(loop for survey in surveys
|
(loop for survey in surveys
|
||||||
for title = (ml-survey/survey:survey-properties-title survey)
|
for title = (ml-survey/survey:survey-properties-title survey)
|
||||||
for description = (ml-survey/survey:survey-properties-description survey)
|
for description = (ml-survey/survey:survey-properties-description survey)
|
||||||
for id = (ml-survey/survey:survey-id survey) do
|
for id = (ml-survey/survey:survey-id survey) do
|
||||||
(:li :class "list-group-item d-flex justify-content-between align-items-start"
|
(:li :class "list-group-item d-flex justify-content-between align-items-start"
|
||||||
(:div :class "ms-2 me-auto"
|
(:div :class "ms-2 me-auto"
|
||||||
(:a :class "fw-bold clearfix"
|
(:a :class "fw-bold clearfix"
|
||||||
:href (format nil "/survey/~a" id)
|
:href (format nil "/survey/~a" id)
|
||||||
title)
|
title)
|
||||||
(if description
|
(if description
|
||||||
(:span description)
|
(:span description)
|
||||||
nil))))))))))
|
nil))))))))))
|
||||||
|
|
||||||
(define-easy-handler (surveys-handler :uri "/") nil
|
(define-easy-handler (surveys-handler :uri "/") nil
|
||||||
(let* ((list-of-surveys (mapcar (lambda (x)
|
(let* ((list-of-surveys (mapcar (lambda (x)
|
||||||
|
|
Loading…
Add table
Reference in a new issue