You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2016/06/23 08:53:23 UTC

[09/14] incubator-taverna-databundle-viewer git commit: Add files via upload

Add files via upload

Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/commit/defd6df0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/tree/defd6df0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/diff/defd6df0

Branch: refs/heads/master
Commit: defd6df0b2c112cc57b29b309b9dbe31d78acd36
Parents: 7421fc7
Author: PCStefan <pa...@gmail.com>
Authored: Mon Jun 6 12:54:16 2016 +0100
Committer: PCStefan <pa...@gmail.com>
Committed: Mon Jun 6 12:54:16 2016 +0100

----------------------------------------------------------------------
 app/views/data_bundles/edit.html.slim  |   5 +-
 app/views/data_bundles/index.html.slim |  11 ++-
 app/views/data_bundles/show.html.slim  | 109 +++++++++++++++++++++-------
 3 files changed, 90 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/blob/defd6df0/app/views/data_bundles/edit.html.slim
----------------------------------------------------------------------
diff --git a/app/views/data_bundles/edit.html.slim b/app/views/data_bundles/edit.html.slim
index 4b38688..aad212c 100644
--- a/app/views/data_bundles/edit.html.slim
+++ b/app/views/data_bundles/edit.html.slim
@@ -5,8 +5,9 @@ section.content
   .row
     .col-xs-12
       .box.box-primary
-        = render partial: 'form'
-
+        # = render partial: 'form'
+        | This option has been disabled by the administrator.
+        
 = link_to 'Show', @data_bundle
 '|
 = link_to 'Back', data_bundles_path

http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/blob/defd6df0/app/views/data_bundles/index.html.slim
----------------------------------------------------------------------
diff --git a/app/views/data_bundles/index.html.slim b/app/views/data_bundles/index.html.slim
index 88c00bf..d8331f5 100644
--- a/app/views/data_bundles/index.html.slim
+++ b/app/views/data_bundles/index.html.slim
@@ -1,6 +1,6 @@
 section.content-header
   h1
-    | DataBundles
+    | Data Bundles
 section.content
   .row
     - if user_signed_in?
@@ -12,7 +12,7 @@ section.content
                 tr
                   th Name
                   th Date
-                  th Donwload
+                  th Download
                   th Links
                 - @data_bundles.each do |data_bundle|
                   tr
@@ -23,11 +23,9 @@ section.content
                     td
                       = link_to data_bundle.file_identifier, data_bundle.file.url
                     td
-                      = link_to 'Show', data_bundle, id: "to_show_#{data_bundle.id}"
+                      = link_to 'Visualize', data_bundle, id: "to_show_#{data_bundle.id}"
                     td
-                      = link_to 'Edit', edit_data_bundle_path(data_bundle), id: "to_edit_#{data_bundle.id}"
-                    td
-                      = link_to 'Destroy', data_bundle_path(data_bundle), method: :delete, data: {confirm: 'Are you sure?'}, id: "to_delete_#{data_bundle.id}"
+                      = link_to 'Delete bundle', data_bundle_path(data_bundle), method: :delete, data: {confirm: 'Are you sure?'}, id: "to_delete_#{data_bundle.id}"
             = paginate @data_bundles
       .col-xs-5
         .box.box-primary
@@ -39,3 +37,4 @@ section.content
         .box
           .box-body
             | For use the databundle viewer you must be logged in
+            = redirectToLogin
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-taverna-databundle-viewer/blob/defd6df0/app/views/data_bundles/show.html.slim
----------------------------------------------------------------------
diff --git a/app/views/data_bundles/show.html.slim b/app/views/data_bundles/show.html.slim
index 218479c..a652727 100644
--- a/app/views/data_bundles/show.html.slim
+++ b/app/views/data_bundles/show.html.slim
@@ -1,31 +1,86 @@
 section.content-header
   h1
-    = "DataBundle #{@data_bundle.name}"
+    = "#{link_to 'DataBundle: ', data_bundles_path}#{@data_bundle.name}".html_safe
+
 section.content
-  = link_to '<- Back', data_bundles_path
-  .box.box-default
-    .box-body
-      table.table.table-bordered
-        tbody
-          tr
-            td Workflow name
-            td
-              = @data_bundle.workflow.annotations.name
-          tr
-            td Authors
-            td
-              = @data_bundle.workflow.annotations.authors.join(' ')
-          tr
-            td Titles
-            td
-              = @data_bundle.workflow.annotations.titles.join(' ')
-          tr
-            td Description
-            td
-              = @data_bundle.workflow.annotations.descriptions.join(' ')
-          tr
-            td Semantic annotation
-            td
-              = @data_bundle.workflow.annotations.semantic_annotation
-      svg#graphContainer
+  .container-fluid
+    .row-fluid
+      .span8.well
+        ul#subject.nav.nav-tabs
+          li.active
+            a data-target="#workflow" data-toggle="tab"  Workflow
+          li
+            a data-target="#provenance" data-toggle="tab"  Provenance
+        .tab-content
+          #workflow.tab-pane.active.fade.in 
+            .box.box-default
+              .box-body
+                table.table.table-bordered
+                  tbody
+                    tr
+                      td Workflow name
+                      td
+                        = @data_bundle.workflow.annotations.name
+                    tr
+                      td Authors
+                      td
+                        = @data_bundle.workflow.annotations.authors.join(' ')
+                    tr
+                      td Titles
+                      td
+                        = @data_bundle.workflow.annotations.titles.join(' ')
+                    tr
+                      td Description
+                      td
+                        = @data_bundle.workflow.annotations.descriptions.join(' ')
+                    tr
+                      td Semantic annotation
+                      td
+                        - if @data_bundle.workflow.annotations.semantic_annotation.nil?
+                          | -
+                        - else
+                          = @data_bundle.workflow.annotations.semantic_annotation
+                #wfContainer
+                  svg#graphContainer
+                button#saveWF.svgImage Save the workflow as image
+                canvas#canvasWF height="500" style="display:none" width="960"
+
+
+          #provenance.tab-pane
+            - if @data_bundle.provenanceMain.present?
+              .container-fluid
+                .row-fluid
+                  .span8.well
+                    ul#diagramType.nav.nav-tabs
+                      li.active
+                        a#diagramSankey data-target="#provSankey" data-toggle="tab" Sankey
+                      li
+                        a#diagramMiserables data-target="#provCooccurrence" data-toggle="tab" Co-occurrence
+                    .tab-content
+                      #provSankey.tab-pane.active.fade.in 
+                        .box.box-default
+                          .box-body
+                      #provCooccurrence.tab-pane
+                        .box.box-default
+                          .box-body
+                            p#porder
+                              | Order:
+                              select#order
+                                option value="name" by Name
+                                option value="count" by Frequency
+                                option value="type" by Type
+                    .provCont
+                      #mapContainer
+                        svg#provContainer
+                      button#enableZooming.svgImage alt=("Enabling zooming will mouse-mid button scrolling ability") type="submit" value="True" 
+                        span Enable Zooming
+
+                      button#savePROV.svgImage Save the provenance as image
+                      canvas#canvasPROV height="500" style="display:none" width="960" 
+            - else
+              .row No data to display
+              br
+            
+
+
 #data_bundle data-url=data_bundle_url(@data_bundle, format: :json)