special label for empty link names

integration-tests
Josha von Gizycki 6 years ago
parent 769a8c8cd3
commit 7bdb38e219

@ -71,9 +71,12 @@
[:th "Schema"] [:th "Schema"]
[:th "Created"]]] [:th "Created"]]]
[:tbody [:tbody
(for [{:keys [link target schema]} (:links-out instance)] (for [{:keys [link target schema]} (:links-out instance)
:let [name (:name link)
empty (empty? name)
name (if empty [:i "empty"] (h name))]]
[:tr [:tr
[:td (h (:name link))] [:td name]
[:td (h (:name target))] [:td (h (:name target))]
[:td (h (:name schema))] [:td (h (:name schema))]
[:td (prettify-dt (:created_at link))]])]]])])) [:td (prettify-dt (:created_at link))]])]]])]))

Loading…
Cancel
Save