0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-12 15:01:28 -05:00

💄 Minor cosmetic changes.

This commit is contained in:
Andrey Antukh 2019-11-26 14:17:10 +01:00
parent d1b000dcc6
commit ba96edc620
3 changed files with 8 additions and 4 deletions
backend
resources/emails/en
src/uxbox

View file

@ -3,7 +3,7 @@ Welcome to UXBOX.
-- end
-- begin :body-text
Hello {{user}}!
Hello {{name}}!
Welcome to UXBOX.
@ -27,7 +27,7 @@ UXBOX team.
<div class="logo">
<img alt="UXBOX" src="{{#static}}images/email/logo.png{{/static}}" />
</div>
<p>Hello {{user}}!</p>
<p>Hello {{name}}!</p>
<p>Welcome to UXBOX.</p>
<p>UXBOX team.</p>
</td>

View file

@ -17,10 +17,14 @@
[uxbox.util.blob :as blob]
[uxbox.util.spec :as us]))
;; --- Defaults
(def default-context
{:static media/resolve-asset
:comment (constantly nil)})
;; --- Register Email
(s/def ::name ::us/string)
(s/def ::register
(s/keys :req-un [::name]))
@ -29,6 +33,8 @@
"A new profile registration welcome email."
(emails/build ::register default-context))
;; --- Public API
(defn render
[email context]
(let [defaults {:from (:email-from cfg/config)

View file

@ -6,10 +6,8 @@
(ns uxbox.http.handlers
(:require
[clojure.tools.logging :as log]
[promesa.core :as p]
[uxbox.emails :as emails]
[uxbox.http.errors :as errors]
[uxbox.http.session :as session]
[uxbox.services.core :as sv]
[uxbox.util.uuid :as uuid]))