mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 23:36:36 +02:00
💄 Minor cosmetic changes.
This commit is contained in:
parent
d1b000dcc6
commit
ba96edc620
3 changed files with 8 additions and 4 deletions
|
@ -3,7 +3,7 @@ Welcome to UXBOX.
|
||||||
-- end
|
-- end
|
||||||
|
|
||||||
-- begin :body-text
|
-- begin :body-text
|
||||||
Hello {{user}}!
|
Hello {{name}}!
|
||||||
|
|
||||||
Welcome to UXBOX.
|
Welcome to UXBOX.
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ UXBOX team.
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img alt="UXBOX" src="{{#static}}images/email/logo.png{{/static}}" />
|
<img alt="UXBOX" src="{{#static}}images/email/logo.png{{/static}}" />
|
||||||
</div>
|
</div>
|
||||||
<p>Hello {{user}}!</p>
|
<p>Hello {{name}}!</p>
|
||||||
<p>Welcome to UXBOX.</p>
|
<p>Welcome to UXBOX.</p>
|
||||||
<p>UXBOX team.</p>
|
<p>UXBOX team.</p>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -17,10 +17,14 @@
|
||||||
[uxbox.util.blob :as blob]
|
[uxbox.util.blob :as blob]
|
||||||
[uxbox.util.spec :as us]))
|
[uxbox.util.spec :as us]))
|
||||||
|
|
||||||
|
;; --- Defaults
|
||||||
|
|
||||||
(def default-context
|
(def default-context
|
||||||
{:static media/resolve-asset
|
{:static media/resolve-asset
|
||||||
:comment (constantly nil)})
|
:comment (constantly nil)})
|
||||||
|
|
||||||
|
;; --- Register Email
|
||||||
|
|
||||||
(s/def ::name ::us/string)
|
(s/def ::name ::us/string)
|
||||||
(s/def ::register
|
(s/def ::register
|
||||||
(s/keys :req-un [::name]))
|
(s/keys :req-un [::name]))
|
||||||
|
@ -29,6 +33,8 @@
|
||||||
"A new profile registration welcome email."
|
"A new profile registration welcome email."
|
||||||
(emails/build ::register default-context))
|
(emails/build ::register default-context))
|
||||||
|
|
||||||
|
;; --- Public API
|
||||||
|
|
||||||
(defn render
|
(defn render
|
||||||
[email context]
|
[email context]
|
||||||
(let [defaults {:from (:email-from cfg/config)
|
(let [defaults {:from (:email-from cfg/config)
|
||||||
|
|
|
@ -6,10 +6,8 @@
|
||||||
|
|
||||||
(ns uxbox.http.handlers
|
(ns uxbox.http.handlers
|
||||||
(:require
|
(:require
|
||||||
[clojure.tools.logging :as log]
|
|
||||||
[promesa.core :as p]
|
[promesa.core :as p]
|
||||||
[uxbox.emails :as emails]
|
[uxbox.emails :as emails]
|
||||||
[uxbox.http.errors :as errors]
|
|
||||||
[uxbox.http.session :as session]
|
[uxbox.http.session :as session]
|
||||||
[uxbox.services.core :as sv]
|
[uxbox.services.core :as sv]
|
||||||
[uxbox.util.uuid :as uuid]))
|
[uxbox.util.uuid :as uuid]))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue