Add minor improvements to error report template

This commit is contained in:
Andrey Antukh 2023-08-10 15:44:11 +02:00
parent da62a6809c
commit 28836d82cd
3 changed files with 14 additions and 6 deletions

View file

@ -238,9 +238,11 @@
(-> (io/resource "app/templates/error-report.v2.tmpl")
(tmpl/render report)))
(render-template-v3 [{report :content id :id}]
(render-template-v3 [{:keys [content id created-at]}]
(-> (io/resource "app/templates/error-report.v3.tmpl")
(tmpl/render (assoc report :id id))))
(tmpl/render (-> content
(assoc :id id)
(assoc :created-at (dt/format-instant created-at :rfc1123))))))
]
(when-not (authorized? pool request)