myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2868] branches/datasets: added link to data sets


From: noreply
Subject: [myexperiment-hackers] [2868] branches/datasets: added link to data sets page
Date: Tue, 6 Dec 2011 07:37:36 -0500 (EST)

Revision
2868
Author
fbacall
Date
2011-12-06 07:37:34 -0500 (Tue, 06 Dec 2011)

Log Message

added link to data sets page

Modified Paths

Diff

Modified: branches/datasets/app/views/workflows/show.rhtml (2867 => 2868)


--- branches/datasets/app/views/workflows/show.rhtml	2011-12-06 11:08:41 UTC (rev 2867)
+++ branches/datasets/app/views/workflows/show.rhtml	2011-12-06 12:37:34 UTC (rev 2868)
@@ -269,6 +269,30 @@
 			<% end %>
 		
 			<br/>
+
+      <% if DataSet::SUPPORTED_TYPES.include?(@workflow.type) %>
+        <h3>
+          <%= info_icon_with_tooltip("Data sets are collections of data to be used in the execution of the Workflow") %>
+          Data Sets
+        </h3>
+        <div class="box_infotext">
+          Data sets are collections of data linked to specific workflow ports. They can be used as a worked example,
+           to assist users in using a workflow, or to document a workflow run.<br/><br/>
+          To <%= (["view","download"] + (@authorised_to_edit ? ["provide"] : [])).to_sentence -%> data sets, click the link below.
+        </div>
+        <br/>
+        <% if @authorised_to_download %>
+          <ul class="sectionIcons">
+            <li style="margin-left: 0;"><%= icon('dataset', workflow_data_sets_url(@workflow), "View data sets (address@hidden available)", nil, "View data sets (address@hidden available)") -%></li>
+          </ul>
+        <% else %>
+          <p class="none_text">
+            You do not have permission to view this workflow's data sets.
+          </p>
+        <% end %>
+
+        <br/>
+      <% end %>
 			
 			<h3>
 				<%= info_icon_with_tooltip("This section shows the internal components of this workflow version") %>

Modified: branches/datasets/config/schema.d/workflows.xml (2867 => 2868)


--- branches/datasets/config/schema.d/workflows.xml	2011-12-06 11:08:41 UTC (rev 2867)
+++ branches/datasets/config/schema.d/workflows.xml	2011-12-06 12:37:34 UTC (rev 2868)
@@ -58,10 +58,10 @@
     <column type="integer"  name="workflow_id"/>
     <column type="datetime" name="created_at"/>
     <column type="datetime" name="updated_at"/>
-    <column type="text"     name="title"/>
+    <column type="string"   name="title"/>
     <column type="text"     name="description"/>
     <column type="text"     name="description_html"/>
-    <column type="text"     name="category"/>
+    <column type="string"   name="category"/>
     <column type="integer"  name="workflow_version"/>
 
     <belongs-to target="contributors" polymorphic="true"/>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]