Skip to content

Commit

Permalink
gig emails: render markdown in some fields
Browse files Browse the repository at this point in the history
fixes #74
  • Loading branch information
Ramblurr committed May 15, 2024
1 parent 52bc070 commit 85f3fb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/clj/app/email/templates.clj
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@
(when end-time
[:li (tr [:gig/end-time]) ": " (ui/format-time end-time)])
(when location
[:li (tr [:gig/location]) ": " location])
[:li (tr [:gig/location]) ": " (markdown/render-one-line location)])
(when-not (str/blank? pay-deal)
[:li (tr [:gig/pay-deal]) ": " pay-deal])]

(when more-details
[:p (tr [:gig/more-details]) ": " [:br] more-details])])
[:p (tr [:gig/more-details]) ": " [:br]
(markdown/render more-details)])])

(defn template-snippet-gig-details-plain [{:keys [tr env]} {:gig/keys [date end-date title set-time call-time end-time status location more-details pay-deal gig-type]}]
(selmer/render
Expand Down

0 comments on commit 85f3fb0

Please sign in to comment.