Re-enable attachments
This commit is contained in:
parent
54d35961d1
commit
46a0766995
2 changed files with 10 additions and 6 deletions
|
|
@ -121,6 +121,10 @@
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section.posts .post .content + .attachments {
|
||||||
|
margin-top: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
section.posts .post .controls {
|
section.posts .post .controls {
|
||||||
margin: 24px 0 0;
|
margin: 24px 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
|
||||||
|
|
@ -321,12 +321,12 @@
|
||||||
" (mentioning " [list-accounts (:mentions post)] ")"])]
|
" (mentioning " [list-accounts (:mentions post)] ")"])]
|
||||||
[:section.post-info
|
[:section.post-info
|
||||||
[:time.date {:datetime (:created_at post)} (first (str/split (:created_at post) "T"))]]]
|
[:time.date {:datetime (:created_at post)} (first (str/split (:created_at post) "T"))]]]
|
||||||
[:section.content {:dangerouslySetInnerHTML (r/unsafe-html (:content post))}
|
[:section.content {:dangerouslySetInnerHTML (r/unsafe-html (:content post))}]
|
||||||
(when (seq (:media_attachments post))
|
(when (seq (:media_attachments post))
|
||||||
[:section.attachments
|
[:section.attachments
|
||||||
(map-indexed (fn [idx item]
|
(map-indexed (fn [idx item]
|
||||||
^{:key idx} [attachment {:attachment item}])
|
^{:key idx} [attachment {:attachment item}])
|
||||||
(:media_attachments post))])]
|
(:media_attachments post))])
|
||||||
[:nav
|
[:nav
|
||||||
[:ul.controls
|
[:ul.controls
|
||||||
[:li.control-element.url
|
[:li.control-element.url
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue