hide properties if none exist

integration-tests
Josha von Gizycki 6 years ago
parent acc9280f8a
commit 71ff06e3ca

@ -48,6 +48,8 @@
[:small (h (:name instance))]]
[:p [:small [:a {:href (path :instance-edit-form instance)}
"Edit Instance"]]]
(when-not (empty? (:properties instance))
[:section.properties
[:h2 "Properties"]
(for [prop (:properties instance)
:let [attr (:attribute prop)
@ -59,7 +61,7 @@
(list [:h3 (h (:name attr))]
[:div {:class (str "instance-content "
"attr-type-" type)}
(render-fn (:value prop))]))
(render-fn (:value prop))]))])
(when-not (empty? (:links-out instance))
[:section.links
[:h2 "Outgoing Links"]

Loading…
Cancel
Save