From acc9280f8a15e13215e3c12f6c0e7c71b0a9e34c Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Wed, 16 Jan 2019 16:20:49 +0100 Subject: [PATCH] links to instances and schemas from instance links --- 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 4b3b043..abc040c 100644 --- a/src/wanijo/instance/view.clj +++ b/src/wanijo/instance/view.clj @@ -77,8 +77,11 @@ name (if empty [:i "empty"] (h name))]] [:tr [:td name] - [:td (h (:name target))] - [:td (h (:name schema))] + [:td [:a {:href (path :instance-show target)} + (h (:name target))]] + [:td [:a {:href (path :instance-list + {:schema-uuid (:uuid schema)})} + (h (:name schema))]] [:td (prettify-dt (:created_at link))]])]]])])) (defn edit! [instance form form-data schemas req]