mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 05:26:11 +02:00
✨ Add minor improvements to error report template
This commit is contained in:
parent
da62a6809c
commit
28836d82cd
3 changed files with 14 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue