From 7bdb38e219d46a97b1d6af0555df37a7ca5dbbe9 Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Wed, 16 Jan 2019 16:18:20 +0100 Subject: [PATCH] special label for empty link names --- src/wanijo/instance/view.clj | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wanijo/instance/view.clj b/src/wanijo/instance/view.clj index 0633f57..4b3b043 100644 --- a/src/wanijo/instance/view.clj +++ b/src/wanijo/instance/view.clj @@ -71,9 +71,12 @@ [:th "Schema"] [:th "Created"]]] [: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 - [:td (h (:name link))] + [:td name] [:td (h (:name target))] [:td (h (:name schema))] [:td (prettify-dt (:created_at link))]])]]])]))