mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 15:14:50 +09:00
Use syntax highlighting in outbox item JSON display
This commit is contained in:
parent
5aaf2ba8a9
commit
64a377b12f
2 changed files with 2 additions and 1 deletions
|
@ -96,6 +96,7 @@ import Yesod.ActivityPub
|
|||
import Yesod.Auth.Unverified
|
||||
import Yesod.FedURI
|
||||
import Yesod.Hashids
|
||||
import Yesod.RenderSource
|
||||
|
||||
import qualified Data.Aeson.Encode.Pretty.ToEncoding as AEP
|
||||
|
||||
|
|
|
@ -22,6 +22,6 @@ $# <http://creativecommons.org/publicdomain/zero/1.0/>.
|
|||
<div>
|
||||
$forall Entity _ (OutboxItem _ (PersistJSON doc) published) <- items
|
||||
<div>#{showTime published}
|
||||
<div><pre>#{AEP.encodePrettyToLazyText doc}
|
||||
<div>^{renderPrettyJSON doc}
|
||||
|
||||
^{pageNav}
|
||||
|
|
Loading…
Reference in a new issue