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"/>