Create view in databundle for json response
diff --git a/app/controllers/data_bundles_controller.rb b/app/controllers/data_bundles_controller.rb
index f929c69..df82ec6 100644
--- a/app/controllers/data_bundles_controller.rb
+++ b/app/controllers/data_bundles_controller.rb
@@ -27,6 +27,7 @@
end
# GET /data_bundles/1
+ # GET /data_bundles/1.json
def show
@data_bundle = @data_bundle.decorate
end
diff --git a/app/views/data_bundles/show.html.slim b/app/views/data_bundles/show.html.slim
index 673107c..bc7394d 100644
--- a/app/views/data_bundles/show.html.slim
+++ b/app/views/data_bundles/show.html.slim
@@ -4,6 +4,7 @@
section.content
.box.box-default
.box-body
+ #d3_visualization
table.table.table-bordered
tbody
tr
@@ -14,8 +15,13 @@
td
= @data_bundle.inputs
tr
+ td Intermediates
+ td
+ = @data_bundle.intermediates
+ tr
td Outputs
td
= @data_bundle.outputs
-
= link_to 'Back', data_bundles_path
+
+#data_bundle data-url=data_bundle_url(@data_bundle, format: :json)
diff --git a/app/views/data_bundles/show.json.jbuilder b/app/views/data_bundles/show.json.jbuilder
new file mode 100644
index 0000000..711eb5b
--- /dev/null
+++ b/app/views/data_bundles/show.json.jbuilder
@@ -0,0 +1,2 @@
+json.name "INPUTS"
+json.inputs @data_bundle.inputs